1 # $FreeBSD: src/share/examples/Makefile,v 1.28.2.6 2002/08/08 09:03:47 ru Exp $
2 # $DragonFly: src/share/examples/Makefile,v 1.3 2005/07/07 11:49:56 corecode Exp $
4 # Doing a make install builds /usr/share/examples
6 DIRS
!= for i in
*; do \
7 if
test -d
$$i -a
$$i != CVS
-a \
8 $$i != ipfilter
-a
$$i != smbfs
; then \
13 DDIR
= ${DESTDIR}/usr
/share
/examples
17 # Define SHARED to indicate whether you want symbolic links to the system
18 # source (``symlinks''), or a separate copy (``copies''); (latter useful
19 # in environments where it's not possible to keep /sys publicly readable)
22 all clean cleandir depend lint
tags:
24 beforeinstall
: etc-examples
${SHARED}
27 FILES
!= find
-L
${dir} \
( -name CVS
-prune \
) -o
-type f
-print
30 ${INSTALL} -o
${BINOWN} -g
${BINGRP} -m
644 ${file} ${DDIR}/${file}
36 rm -rf
${DDIR}/${dir}; ${LN} -s
${.CURDIR
}/${dir} ${DDIR}
40 .if
${SHARED} != "symlinks"
41 (cd
${.CURDIR
}/..
/..
/etc
; ${MAKE} etc-examples
)
44 .if
${SHARED} != "symlinks"
46 .if
!defined
(NO_IPFILTER
)
51 .
include <bsd.subdir.mk
>