Makefile revision 85214
1216294Ssyrinx# $FreeBSD: head/share/examples/Makefile 85214 2001-10-20 04:18:13Z darrenr $ 2216294Ssyrinx# 3216294Ssyrinx# Doing a make install builds /usr/share/examples 4216294Ssyrinx 5216294SsyrinxDIRS!= for i in *; do \ 6216294Ssyrinx if test -d $$i -a $$i != CVS -a $$i != ipfilter; then \ 7216294Ssyrinx echo $$i; \ 8216294Ssyrinx fi; \ 9216294Ssyrinx done 10216294Ssyrinx 11216294SsyrinxDDIR= ${DESTDIR}/usr/share/examples 12216294Ssyrinx 13216294SsyrinxNOOBJ= noobj 14216294Ssyrinx 15216294Ssyrinx# Define SHARED to indicate whether you want symbolic links to the system 16216294Ssyrinx# source (``symlinks''), or a separate copy (``copies''); (latter useful 17216294Ssyrinx# in environments where it's not possible to keep /sys publicly readable) 18216294SsyrinxSHARED?= copies 19216294Ssyrinx 20216294Ssyrinxall clean cleandir depend lint tags: 21216294Ssyrinx 22216294Ssyrinxbeforeinstall: etc-examples ${SHARED} 23216294Ssyrinx 24216294Ssyrinx.for dir in ${DIRS} 25216294SsyrinxFILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print 26216294Ssyrinx.for file in ${FILES} 27216294Ssyrinxcopies:: 28216294Ssyrinx ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file} 29216294Ssyrinx.endfor 30216294Ssyrinx.endfor 31216294Ssyrinx 32216294Ssyrinx.for dir in ${DIRS} 33216294Ssyrinxsymlinks:: 34216294Ssyrinx rm -rf ${DDIR}/${dir}; ln -s ${.CURDIR}/${dir} ${DDIR} 35216294Ssyrinx.endfor 36216294Ssyrinx 37216294Ssyrinxetc-examples: 38216294Ssyrinx.if ${SHARED} != "symlinks" 39216294Ssyrinx (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples) 40216294Ssyrinx.endif 41216294Ssyrinx 42216294Ssyrinx.if ${SHARED} != "symlinks" 43216294SsyrinxSUBDIR= ipfilter 44216294Ssyrinx.endif 45216294Ssyrinx 46216294Ssyrinx.include <bsd.subdir.mk> 47216294Ssyrinx