Makefile revision 4257
1# $Id: Makefile,v 1.10 1994/10/24 09:56:42 sos Exp $ 2# 3# Doing a make install builds /usr/share/examples 4 5DIRS=etc FreeBSD_version ibcs2 lkm sunrpc syscons 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 | 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