1# $Id: Makefile,v 1.16 1995/09/14 23:49:21 ache Exp $ 2# 3# Doing a make install builds /usr/share/examples 4 5DIRS=etc find_interface FreeBSD_version ibcs2 lkm startslip sunrpc sup 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} \( -name CVS -prune \) -o -print | 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