1995-12-11 04:03:24 +01:00
|
|
|
# $Id: Makefile,v 1.17 1995/09/30 15:46:54 jfieber 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}
|
1995-12-11 04:03:24 +01:00
|
|
|
find ${DIRS} \( -name CVS -prune \) -o -type f -print -exec \
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 {} ${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>
|