usr.sbin/makefs: Add -o c|C option to specify comp|check type
[dragonfly.git] / share / examples / Makefile
blob44a4230f2a8bc61d0427d23d3df39e1437c40e1a
1 # $FreeBSD: src/share/examples/Makefile,v 1.28.2.6 2002/08/08 09:03:47 ru Exp $
3 # Doing a make install builds /usr/share/examples
5 DIRS!= for i in *; do \
6 if test -d $$i -a $$i != acpica -a $$i != autofs -a $$i != smbfs \
7 -a $$i != ssh -a $$i != ssl ; then \
8 echo $$i; \
9 fi; \
10 done
12 DDIR= ${DESTDIR}/usr/share/examples
14 NOOBJ= noobj
16 # Define SHARED to indicate whether you want symbolic links to the system
17 # source (``symlinks''), or a separate copy (``copies''); (latter useful
18 # in environments where it's not possible to keep /sys publicly readable)
19 SHARED?= copies
21 all clean cleandir depend lint tags:
23 beforeinstall: etc-examples ${SHARED}
25 .for dir in ${DIRS}
26 FILES!= find -L ${dir} -type f -print
27 .for file in ${FILES}
28 copies::
29 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file}
30 .endfor
31 .endfor
33 .for dir in ${DIRS}
34 symlinks::
35 rm -rf ${DDIR}/${dir}; ${LN} -s ${.CURDIR}/${dir} ${DDIR}
36 .endfor
38 etc-examples:
39 .if ${SHARED} != "symlinks"
40 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
41 .endif
43 .if ${SHARED} != "symlinks"
44 SUBDIR= acpica autofs smbfs ssh ssl
45 .endif
47 .include <bsd.subdir.mk>