diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-04-14 21:04:42 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-04-14 21:04:42 +0000 |
commit | c41790fef1cb2ed2cad05aa6c9ff83de183593e3 (patch) | |
tree | 843135ddb784aa6430401ed2b918689a6b439550 /share/examples | |
parent | 996e1d4975f2fa19ea8731e0fef36171e535f820 (diff) | |
download | FreeBSD-src-c41790fef1cb2ed2cad05aa6c9ff83de183593e3.zip FreeBSD-src-c41790fef1cb2ed2cad05aa6c9ff83de183593e3.tar.gz |
Rework META_TARGETS so that it automatically adds META_DEPS to the targets.
This will only be done if the target is defined, so if the target is
defined after bsd.sys.mk is included then it needs to manually add
${META_DEPS} still.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share/examples')
-rw-r--r-- | share/examples/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile index cbc85b0..ed5c3f3 100644 --- a/share/examples/Makefile +++ b/share/examples/Makefile @@ -222,7 +222,7 @@ beforeinstall: ${SHARED} etc-examples META_TARGETS+= copies symlinks .ORDER: ${SHARED} etc-examples -copies: ${META_DEPS} +copies: .for i in ${LDIRS} if [ -L ${DESTDIR}${BINDIR}/$i ]; then \ rm -f ${DESTDIR}${BINDIR}/$i; \ @@ -235,7 +235,7 @@ copies: ${META_DEPS} ${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file} .endfor -symlinks: ${META_DEPS} +symlinks: .for i in ${LDIRS} rm -rf ${DESTDIR}${BINDIR}/$i ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i |