Don't use non-existing DragonFly override ports for ports using
[dragonfly.git] / share / examples / Makefile
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.2 2003/06/17 04:36:57 dillon Exp $
3 #
4 # Doing a make install builds /usr/share/examples
5
6 DIRS!=  for i in *; do \
7             if test -d $$i -a $$i != CVS -a \
8                 $$i != ipfilter -a $$i != smbfs; then \
9                 echo $$i; \
10             fi; \
11         done
12
13 DDIR=   ${DESTDIR}/usr/share/examples
14
15 NOOBJ=  noobj
16
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)
20 SHARED?=        copies
21
22 all clean cleandir depend lint tags:
23
24 beforeinstall: etc-examples ${SHARED}
25
26 .for dir in ${DIRS}
27 FILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print
28 .for file in ${FILES}
29 copies::
30         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file}
31 .endfor
32 .endfor
33
34 .for dir in ${DIRS}
35 symlinks::
36         rm -rf ${DDIR}/${dir}; ln -s ${.CURDIR}/${dir} ${DDIR}
37 .endfor
38
39 etc-examples:
40 .if ${SHARED} != "symlinks"
41         (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
42 .endif
43
44 .if ${SHARED} != "symlinks"
45 SUBDIR= smbfs
46 .if !defined(NO_IPFILTER)
47 SUBDIR+=ipfilter
48 .endif
49 .endif
50
51 .include <bsd.subdir.mk>