Makefile revision 4257
14257Sphk# $Id: Makefile,v 1.10 1994/10/24 09:56:42 sos Exp $ 21987Swollman# 31987Swollman# Doing a make install builds /usr/share/examples 41987Swollman 53830SsosDIRS=etc FreeBSD_version ibcs2 lkm sunrpc syscons 64257Sphk 74257SphkDDIR=${DESTDIR}/usr/share/examples 84257Sphk 92365SbdeNOOBJ= noobj 101987Swollman 111987Swollman# Define SHARED to indicate whether you want symbolic links to the system 121987Swollman# source (``symlinks''), or a separate copy (``copies''); (latter useful 131987Swollman# in environments where it's not possible to keep /sys publicly readable) 141987SwollmanSHARED?= copies 151987Swollman 162365Sbdeall clean cleandir depend lint tags: 172365Sbde 181987Swollmanbeforeinstall: ${SHARED} 191987Swollman 201987Swollmancopies: 214257Sphk @${ECHO} installing ${DDIR} 222699Swollman @-for a in ${DIRS}; do \ 234257Sphk rm -rf ${DDIR}/$$a; \ 242699Swollman done 254257Sphk find ${DIRS} -print | grep -v /CVS | cpio -dumpv ${DDIR} 261987Swollman 271987Swollmansymlinks: 284257Sphk @${ECHO} installing symlinks in ${DDIR} 291987Swollman @-for a in ${DIRS}; do \ 304257Sphk rm -rf ${DDIR}/$$a; \ 314257Sphk ln -s ${.CURDIR}/$$a ${DDIR}; \ 321987Swollman done 331987Swollman 341987Swollman.include <bsd.prog.mk> 35