summaryrefslogtreecommitdiffstats
path: root/share/examples/Makefile
blob: 1e07279094c25b00ed1731cf8f6e06649e640d25 (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
# $FreeBSD$
#
# Doing a make install builds /usr/share/examples

DIRS!=	for i in *; do if test -d $$i -a $$i != CVS; then echo $$i; fi; done

DDIR=	${DESTDIR}/usr/share/examples

NOOBJ=	noobj

all clean cleandir depend lint tags:

beforeinstall: copies
	(cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)

.for dir in ${DIRS}
FILES!=	find -L ${dir} \( -name CVS -prune \) -o -type f -print
.for file in ${FILES}
copies::
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file}
.endfor
.endfor

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud