diff options
Diffstat (limited to 'share/examples/Makefile')
-rw-r--r-- | share/examples/Makefile | 9 |
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> |