1# $FreeBSD: head/share/examples/Makefile 54312 1999-12-08 13:47:30Z marcel $
| 1# $FreeBSD: head/share/examples/Makefile 54351 1999-12-09 09:35:36Z marcel $
|
2# 3# Doing a make install builds /usr/share/examples 4 5DIRS!= for i in *; do if test -d $$i -a $$i != CVS; then echo $$i; fi; done 6 7DDIR= ${DESTDIR}/usr/share/examples 8 9NOOBJ= noobj 10
| 2# 3# Doing a make install builds /usr/share/examples 4 5DIRS!= for i in *; do if test -d $$i -a $$i != CVS; then echo $$i; fi; done 6 7DDIR= ${DESTDIR}/usr/share/examples 8 9NOOBJ= noobj 10
|
| 11# Define SHARED to indicate whether you want symbolic links to the system 12# source (``symlinks''), or a separate copy (``copies''); (latter useful 13# in environments where it's not possible to keep /sys publicly readable) 14SHARED?= copies 15
|
11all clean cleandir depend lint tags: 12
| 16all clean cleandir depend lint tags: 17
|
13beforeinstall: copies 14 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
| 18beforeinstall: etc-examples ${SHARED}
|
15 16.for dir in ${DIRS} 17FILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print 18.for file in ${FILES} 19copies:: 20 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file} 21.endfor 22.endfor 23
| 19 20.for dir in ${DIRS} 21FILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print 22.for file in ${FILES} 23copies:: 24 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file} 25.endfor 26.endfor 27
|
| 28.for dir in ${DIRS} 29symlinks:: 30 rm -rf ${DDIR}/${dir}; ln -s ${.CURDIR}/${dir} ${DDIR} 31.endfor 32 33etc-examples: 34.if ${SHARED} != "symlinks" 35 (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples) 36.endif 37
|
24.include <bsd.prog.mk>
| 38.include <bsd.prog.mk>
|