1994-08-28 19:21:36 +02:00
|
|
|
# $Id: Makefile,v 1.3 1994/08/19 20:43:42 wollman Exp $
|
1994-08-09 20:25:38 +02:00
|
|
|
#
|
|
|
|
# Doing a make install builds /usr/share/examples
|
|
|
|
|
1994-08-19 22:43:42 +02:00
|
|
|
DIRS=etc FreeBSD_version lkm sunrpc
|
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-08-28 19:21:36 +02:00
|
|
|
@${ECHO} installing ${DESTDIR}/usr/share/examples
|
1994-08-09 20:25:38 +02:00
|
|
|
@rm -rf ${DESTDIR}/usr/share/examples
|
|
|
|
@-mkdir ${DESTDIR}/usr/share/examples
|
|
|
|
@tar cf - ${DIRS} | \
|
|
|
|
(cd ${DESTDIR}/usr/share/examples; tar xpfB -);
|
|
|
|
@chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples
|
|
|
|
@chmod -R a-w ${DESTDIR}/usr/share/examples
|
|
|
|
|
|
|
|
symlinks:
|
1994-08-28 19:21:36 +02:00
|
|
|
@${ECHO} installing symlinks in ${DESTDIR}/usr/share/examples
|
1994-08-09 20:25:38 +02:00
|
|
|
@rm -rf ${DESTDIR}/usr/share/examples
|
|
|
|
@-mkdir ${DESTDIR}/usr/share/examples
|
|
|
|
@-for a in ${DIRS}; do \
|
|
|
|
ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \
|
|
|
|
done
|
|
|
|
@chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples
|
|
|
|
@chmod -R a-w ${DESTDIR}/usr/share/examples
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|