blob: d321b8aa19fc73562884aa817d32e205a5202f56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $Id: Makefile,v 1.2 1994/08/10 06:40:29 wollman Exp $
#
# Doing a make install builds /usr/share/examples
#
all clean cleandir depend lint tags:
DIRS=etc FreeBSD_version lkm sunrpc
# 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
beforeinstall: ${SHARED}
copies:
@echo installing ${DESTDIR}/usr/share/examples
@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:
@echo installing symlinks in ${DESTDIR}/usr/share/examples
@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>
|