1994-10-24 09:56:42 +00:00
|
|
|
# $Id: Makefile,v 1.9 1994/09/25 03:11:27 ache Exp $
|
1994-08-09 18:25:38 +00:00
|
|
|
#
|
|
|
|
# Doing a make install builds /usr/share/examples
|
|
|
|
|
1994-10-24 09:56:42 +00:00
|
|
|
DIRS=etc FreeBSD_version ibcs2 lkm sunrpc syscons
|
1994-08-28 17:21:36 +00:00
|
|
|
NOOBJ= noobj
|
1994-08-09 18:25:38 +00:00
|
|
|
|
|
|
|
# Define SHARED to indicate whether you want symbolic links to the system
|
|
|
|
# source (``symlinks''), or a separate copy (``copies''); (latter useful
|
|
|
|
# in environments where it's not possible to keep /sys publicly readable)
|
|
|
|
SHARED?= copies
|
|
|
|
|
1994-08-28 17:21:36 +00:00
|
|
|
all clean cleandir depend lint tags:
|
|
|
|
|
1994-08-09 18:25:38 +00:00
|
|
|
beforeinstall: ${SHARED}
|
|
|
|
|
|
|
|
copies:
|
1994-08-28 17:21:36 +00:00
|
|
|
@${ECHO} installing ${DESTDIR}/usr/share/examples
|
1994-09-13 02:21:03 +00:00
|
|
|
@-for a in ${DIRS}; do \
|
|
|
|
rm -rf ${DESTDIR}/usr/share/examples/$$a; \
|
1994-09-23 07:47:43 +00:00
|
|
|
cp -rp $$a ${DESTDIR}/usr/share/examples; \
|
1994-09-13 02:21:03 +00:00
|
|
|
done
|
1994-08-09 18:25:38 +00:00
|
|
|
|
|
|
|
symlinks:
|
1994-08-28 17:21:36 +00:00
|
|
|
@${ECHO} installing symlinks in ${DESTDIR}/usr/share/examples
|
1994-08-09 18:25:38 +00:00
|
|
|
@-for a in ${DIRS}; do \
|
1994-09-13 02:21:03 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/share/examples/$$a; \
|
1994-08-09 18:25:38 +00:00
|
|
|
ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|