summaryrefslogtreecommitdiffstats
path: root/share/examples/Makefile
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2016-03-14 18:54:29 +0000
committergjb <gjb@FreeBSD.org>2016-03-14 18:54:29 +0000
commit086e6f562ffbb6de24f1e51c7df40f403dd1522b (patch)
tree7aa3dd8f24b6558f2ef57be4db6203ac91424ea3 /share/examples/Makefile
parent1c7e318a9a31cae130bd5b2de01d93e7800f66ff (diff)
parentaab6aadc586e30f7b3512d20c6a5f780bddc2de3 (diff)
downloadFreeBSD-src-086e6f562ffbb6de24f1e51c7df40f403dd1522b.zip
FreeBSD-src-086e6f562ffbb6de24f1e51c7df40f403dd1522b.tar.gz
MFH
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'share/examples/Makefile')
-rw-r--r--share/examples/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile
index c71604e..827afa9 100644
--- a/share/examples/Makefile
+++ b/share/examples/Makefile
@@ -220,9 +220,10 @@ PACKAGE_bhyve/vmrun.sh= bhyve
SHARED?= copies
beforeinstall: ${SHARED} etc-examples
+META_TARGETS+= copies symlinks
.ORDER: ${SHARED} etc-examples
-copies:
+copies: ${META_DEPS}
.for i in ${LDIRS}
if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
rm -f ${DESTDIR}${BINDIR}/$i; \
@@ -235,7 +236,7 @@ copies:
${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
.endfor
-symlinks:
+symlinks: ${META_DEPS}
.for i in ${LDIRS}
rm -rf ${DESTDIR}${BINDIR}/$i
ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
@@ -243,7 +244,7 @@ symlinks:
etc-examples:
.if ${SHARED} != "symlinks"
- (cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
+ ${_+_}(cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
.endif
.if ${SHARED} != "symlinks"
@@ -262,4 +263,4 @@ SUBDIR+=tests
SUBDIR_PARALLEL=
-.include <bsd.subdir.mk>
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud