1995-08-14 16:08:39 +00:00
|
|
|
# $Id: Makefile,v 1.14 1995/08/12 16:28:10 joerg Exp $
|
1994-08-09 18:25:38 +00:00
|
|
|
#
|
|
|
|
# Doing a make install builds /usr/share/examples
|
|
|
|
|
1995-08-14 16:08:39 +00:00
|
|
|
DIRS=etc find_interface FreeBSD_version ibcs2 lkm sunrpc
|
1994-11-08 03:58:52 +00:00
|
|
|
|
|
|
|
DDIR=${DESTDIR}/usr/share/examples
|
|
|
|
|
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-11-08 03:58:52 +00:00
|
|
|
@${ECHO} installing ${DDIR}
|
1994-09-13 02:21:03 +00:00
|
|
|
@-for a in ${DIRS}; do \
|
1994-11-08 03:58:52 +00:00
|
|
|
rm -rf ${DDIR}/$$a; \
|
1994-09-13 02:21:03 +00:00
|
|
|
done
|
1995-08-12 16:28:10 +00:00
|
|
|
find ${DIRS} \( -name CVS -prune \) -o -print | cpio -dumpv ${DDIR}
|
1994-08-09 18:25:38 +00:00
|
|
|
|
|
|
|
symlinks:
|
1994-11-08 03:58:52 +00:00
|
|
|
@${ECHO} installing symlinks in ${DDIR}
|
1994-08-09 18:25:38 +00:00
|
|
|
@-for a in ${DIRS}; do \
|
1994-11-08 03:58:52 +00:00
|
|
|
rm -rf ${DDIR}/$$a; \
|
|
|
|
ln -s ${.CURDIR}/$$a ${DDIR}; \
|
1994-08-09 18:25:38 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|