1995-03-29 19:05:58 -05:00
|
|
|
# $Id: Makefile,v 1.12 1994/11/08 18:54:33 phk Exp $
|
1994-08-09 14:25:38 -04:00
|
|
|
#
|
|
|
|
|
# Doing a make install builds /usr/share/examples
|
|
|
|
|
|
1995-03-29 19:05:58 -05:00
|
|
|
DIRS=etc FreeBSD_version ibcs2 lkm sunrpc
|
1994-11-07 22:58:52 -05:00
|
|
|
|
|
|
|
|
DDIR=${DESTDIR}/usr/share/examples
|
|
|
|
|
|
1994-08-28 13:21:36 -04:00
|
|
|
NOOBJ= noobj
|
1994-08-09 14:25:38 -04: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 13:21:36 -04:00
|
|
|
all clean cleandir depend lint tags:
|
|
|
|
|
|
1994-08-09 14:25:38 -04:00
|
|
|
beforeinstall: ${SHARED}
|
|
|
|
|
|
|
|
|
|
copies:
|
1994-11-07 22:58:52 -05:00
|
|
|
@${ECHO} installing ${DDIR}
|
1994-09-12 22:21:03 -04:00
|
|
|
@-for a in ${DIRS}; do \
|
1994-11-07 22:58:52 -05:00
|
|
|
rm -rf ${DDIR}/$$a; \
|
1994-09-12 22:21:03 -04:00
|
|
|
done
|
1994-11-08 13:54:33 -05:00
|
|
|
find ${DIRS} -print | grep -v /CVS | \
|
|
|
|
|
grep -v Makefile | cpio -dumpv ${DDIR}
|
1994-08-09 14:25:38 -04:00
|
|
|
|
|
|
|
|
symlinks:
|
1994-11-07 22:58:52 -05:00
|
|
|
@${ECHO} installing symlinks in ${DDIR}
|
1994-08-09 14:25:38 -04:00
|
|
|
@-for a in ${DIRS}; do \
|
1994-11-07 22:58:52 -05:00
|
|
|
rm -rf ${DDIR}/$$a; \
|
|
|
|
|
ln -s ${.CURDIR}/$$a ${DDIR}; \
|
1994-08-09 14:25:38 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|