Makefile revision 3830
13830Ssos#	$Id: Makefile,v 1.9 1994/09/25 03:11:27 ache Exp $
21987Swollman#
31987Swollman# Doing a make install builds /usr/share/examples
41987Swollman
53830SsosDIRS=etc FreeBSD_version ibcs2 lkm sunrpc syscons
62365SbdeNOOBJ=	noobj
71987Swollman
81987Swollman# Define SHARED to indicate whether you want symbolic links to the system
91987Swollman# source (``symlinks''), or a separate copy (``copies''); (latter useful
101987Swollman# in environments where it's not possible to keep /sys publicly readable)
111987SwollmanSHARED?=	copies
121987Swollman
132365Sbdeall clean cleandir depend lint tags:
142365Sbde
151987Swollmanbeforeinstall: ${SHARED}
161987Swollman
171987Swollmancopies:
182365Sbde	@${ECHO} installing ${DESTDIR}/usr/share/examples
192699Swollman	@-for a in ${DIRS}; do \
202699Swollman		rm -rf ${DESTDIR}/usr/share/examples/$$a; \
213026Srgrimes		cp -rp $$a ${DESTDIR}/usr/share/examples; \
222699Swollman	done
231987Swollman
241987Swollmansymlinks:
252365Sbde	@${ECHO} installing symlinks in ${DESTDIR}/usr/share/examples
261987Swollman	@-for a in ${DIRS}; do \
272699Swollman		rm -rf ${DESTDIR}/usr/share/examples/$$a; \
281987Swollman		ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \
291987Swollman	done
301987Swollman
311987Swollman.include <bsd.prog.mk>
32