1995-09-30 16:46:54 +01:00
|
|
|
# $Id: Makefile,v 1.16 1995/09/14 23:49:21 ache Exp $
|
1994-08-09 20:25:38 +02:00
|
|
|
#
|
|
|
|
# Doing a make install builds /usr/share/examples
|
|
|
|
|
1995-09-30 16:46:54 +01:00
|
|
|
DIRS=etc find_interface FreeBSD_version ibcs2 lkm startslip sunrpc sup
|
1994-11-08 04:58:52 +01:00
|
|
|
|
|
|
|
DDIR=${DESTDIR}/usr/share/examples
|
|
|
|
|
1994-08-28 19:21:36 +02:00
|
|
|
NOOBJ= noobj
|
1994-08-09 20:25:38 +02: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 19:21:36 +02:00
|
|
|
all clean cleandir depend lint tags:
|
|
|
|
|
1994-08-09 20:25:38 +02:00
|
|
|
beforeinstall: ${SHARED}
|
|
|
|
|
|
|
|
copies:
|
1994-11-08 04:58:52 +01:00
|
|
|
@${ECHO} installing ${DDIR}
|
1994-09-13 04:21:03 +02:00
|
|
|
@-for a in ${DIRS}; do \
|
1994-11-08 04:58:52 +01:00
|
|
|
rm -rf ${DDIR}/$$a; \
|
1994-09-13 04:21:03 +02:00
|
|
|
done
|
1995-08-12 18:28:10 +02:00
|
|
|
find ${DIRS} \( -name CVS -prune \) -o -print | cpio -dumpv ${DDIR}
|
1994-08-09 20:25:38 +02:00
|
|
|
|
|
|
|
symlinks:
|
1994-11-08 04:58:52 +01:00
|
|
|
@${ECHO} installing symlinks in ${DDIR}
|
1994-08-09 20:25:38 +02:00
|
|
|
@-for a in ${DIRS}; do \
|
1994-11-08 04:58:52 +01:00
|
|
|
rm -rf ${DDIR}/$$a; \
|
|
|
|
ln -s ${.CURDIR}/$$a ${DDIR}; \
|
1994-08-09 20:25:38 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|