Makefile revision 4257
10Sduke# $Id: Makefile,v 1.10 1994/10/24 09:56:42 sos Exp $ 22927Ssogoel# 30Sduke# Doing a make install builds /usr/share/examples 40Sduke 50SdukeDIRS=etc FreeBSD_version ibcs2 lkm sunrpc syscons 60Sduke 72927SsogoelDDIR=${DESTDIR}/usr/share/examples 80Sduke 90SdukeNOOBJ= noobj 100Sduke 110Sduke# Define SHARED to indicate whether you want symbolic links to the system 120Sduke# 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 | cpio -dumpv ${DDIR} 26 27symlinks: 28 @${ECHO} installing symlinks in ${DDIR} 29 @-for a in ${DIRS}; do \ 30 rm -rf ${DDIR}/$$a; \ 31 ln -s ${.CURDIR}/$$a ${DDIR}; \ 32 done 33 34.include <bsd.prog.mk> 35