1# $Id: Makefile,v 1.12 1994/11/08 18:54:33 phk Exp $ 2# 3# Doing a make install builds /usr/share/examples 4 5DIRS=etc FreeBSD_version ibcs2 lkm sunrpc 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 16all clean cleandir depend lint tags: 17 18beforeinstall: ${SHARED} 19 20copies: 21 @${ECHO} installing ${DDIR} 22 @-for a in ${DIRS}; do \ 23 rm -rf ${DDIR}/$$a; \ 24 done 25 find ${DIRS} -print | grep -v /CVS | \ 26 grep -v Makefile | cpio -dumpv ${DDIR} 27 28symlinks: 29 @${ECHO} installing symlinks in ${DDIR} 30 @-for a in ${DIRS}; do \ 31 rm -rf ${DDIR}/$$a; \ 32 ln -s ${.CURDIR}/$$a ${DDIR}; \ 33 done 34 35.include <bsd.prog.mk> 36