kernel: Replace struct device* by device_t
[dragonfly.git] / share / examples / Makefile
blob2f876e694057d6d9487208118ee15435d72682bf
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 != smbfs; then \
7 echo $$i; \
8 fi; \
9 done
11 DDIR= ${DESTDIR}/usr/share/examples
13 NOOBJ= noobj
15 # Define SHARED to indicate whether you want symbolic links to the system
16 # source (``symlinks''), or a separate copy (``copies''); (latter useful
17 # in environments where it's not possible to keep /sys publicly readable)
18 SHARED?= copies
20 all clean cleandir depend lint tags:
22 beforeinstall: etc-examples ${SHARED}
24 .for dir in ${DIRS}
25 FILES!= find -L ${dir} -type f -print
26 .for file in ${FILES}
27 copies::
28 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file}
29 .endfor
30 .endfor
32 .for dir in ${DIRS}
33 symlinks::
34 rm -rf ${DDIR}/${dir}; ${LN} -s ${.CURDIR}/${dir} ${DDIR}
35 .endfor
37 etc-examples:
38 .if ${SHARED} != "symlinks"
39 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
40 .endif
42 .if ${SHARED} != "symlinks"
43 SUBDIR= acpica smbfs
44 .endif
46 .include <bsd.subdir.mk>