Deleted Added
full compact
Makefile (12765) Makefile (13537)
1# $Id: Makefile,v 1.17 1995/09/30 15:46:54 jfieber Exp $
1# $Id: Makefile,v 1.18 1995/12/11 03:03:24 peter Exp $
2#
3# Doing a make install builds /usr/share/examples
4
2#
3# Doing a make install builds /usr/share/examples
4
5DIRS=etc find_interface FreeBSD_version ibcs2 lkm startslip sunrpc sup
5DIRS!= for i in *; do if test -d $$i -a $$i != CVS; then echo $$i; fi; done
6
6
7DDIR=${DESTDIR}/usr/share/examples
7DDIR= ${DESTDIR}/usr/share/examples
8
9NOOBJ= noobj
10
11# Define SHARED to indicate whether you want symbolic links to the system
12# source (``symlinks''), or a separate copy (``copies''); (latter useful
13# in environments where it's not possible to keep /sys publicly readable)
14SHARED?= copies
15
16all clean cleandir depend lint tags:
17
18beforeinstall: ${SHARED}
19
8
9NOOBJ= noobj
10
11# Define SHARED to indicate whether you want symbolic links to the system
12# source (``symlinks''), or a separate copy (``copies''); (latter useful
13# in environments where it's not possible to keep /sys publicly readable)
14SHARED?= copies
15
16all clean cleandir depend lint tags:
17
18beforeinstall: ${SHARED}
19
20copies:
21 @${ECHO} installing ${DDIR}
22 find ${DIRS} \( -name CVS -prune \) -o -type f -print -exec \
23 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 {} ${DDIR}/{} \;
20.for dir in ${DIRS}
21FILES!= find ${dir} \( -name CVS -prune \) -o -type f -print
22.for file in ${FILES}
23copies::
24 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file}
25.endfor
26.endfor
24
27
25symlinks:
26 @${ECHO} installing symlinks in ${DDIR}
27 @-for a in ${DIRS}; do \
28 rm -rf ${DDIR}/$$a; \
29 ln -s ${.CURDIR}/$$a ${DDIR}; \
30 done
28.for dir in ${DIRS}
29symlinks::
30 rm -rf ${DDIR}/${dir}; ln -s ${.CURDIR}/${dir} ${DDIR}
31.endfor
31
32.include <bsd.prog.mk>
32
33.include <bsd.prog.mk>