summaryrefslogtreecommitdiffstats
path: root/share/examples/Makefile
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-11 23:45:09 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-11 23:45:09 +0000
commit946eac8da84e5763b65b0f91465b545188f630ee (patch)
tree4e5100019da5a280cc182d0139aa8759b1ae1a69 /share/examples/Makefile
parent076eeb23035d1dc687a6d4cc03dc05e7f278791a (diff)
downloadFreeBSD-src-946eac8da84e5763b65b0f91465b545188f630ee.zip
FreeBSD-src-946eac8da84e5763b65b0f91465b545188f630ee.tar.gz
DIRDEPS_BUILD: Fix staging of share/sendmail and share/examples.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share/examples/Makefile')
-rw-r--r--share/examples/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile
index 2484aff..7f243fa 100644
--- a/share/examples/Makefile
+++ b/share/examples/Makefile
@@ -219,9 +219,11 @@ XFILES+= bhyve/vmrun.sh
SHARED?= copies
beforeinstall: ${SHARED} etc-examples
+META_COOKIES+= copies symlinks
.ORDER: ${SHARED} etc-examples
copies:
+ ${META_COOKIE_RM}
.for i in ${LDIRS}
if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
rm -f ${DESTDIR}${BINDIR}/$i; \
@@ -233,16 +235,19 @@ copies:
${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
.endfor
+ ${META_COOKIE_TOUCH}
symlinks:
+ ${META_COOKIE_RM}
.for i in ${LDIRS}
rm -rf ${DESTDIR}${BINDIR}/$i
ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
.endfor
+ ${META_COOKIE_TOUCH}
etc-examples:
.if ${SHARED} != "symlinks"
- (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
+ ${_+_}(cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
.endif
.if ${SHARED} != "symlinks"
@@ -261,4 +266,4 @@ SUBDIR+=tests
SUBDIR_PARALLEL=
-.include <bsd.subdir.mk>
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud