summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.links.mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-03-17 19:10:51 +0000
committerbapt <bapt@FreeBSD.org>2015-03-17 19:10:51 +0000
commit4a19e2b7c6f8511d2f6d0531241e2f7bb033c1f4 (patch)
tree5533b31f3294a54f61e1b617711c9bb159d2f3e0 /share/mk/bsd.links.mk
parent86b635277a06f1b8eb92930f7a1cd5327c89be0a (diff)
parentc00b4703949f8f1b7a7d2bd81919b332794cbd7f (diff)
downloadFreeBSD-src-4a19e2b7c6f8511d2f6d0531241e2f7bb033c1f4.zip
FreeBSD-src-4a19e2b7c6f8511d2f6d0531241e2f7bb033c1f4.tar.gz
Merge from head
Diffstat (limited to 'share/mk/bsd.links.mk')
-rw-r--r--share/mk/bsd.links.mk34
1 files changed, 10 insertions, 24 deletions
diff --git a/share/mk/bsd.links.mk b/share/mk/bsd.links.mk
index 6f46563..87b808f 100644
--- a/share/mk/bsd.links.mk
+++ b/share/mk/bsd.links.mk
@@ -6,33 +6,19 @@
.if defined(NO_ROOT)
.if !defined(TAGS) || ! ${TAGS:Mpackage=*}
-TAGS+= package=${PACKAGE}
+TAGS+= package=${PACKAGE}
.endif
-TAG_ARGS= -T ${TAGS:[*]:S/ /,/g}
+TAG_ARGS= -T ${TAGS:[*]:S/ /,/g}
.endif
afterinstall: _installlinks
.ORDER: realinstall _installlinks
_installlinks:
-.if defined(LINKS) && !empty(LINKS)
- @set ${LINKS}; \
- while test $$# -ge 2; do \
- l=${DESTDIR}$$1; \
- shift; \
- t=${DESTDIR}$$1; \
- shift; \
- ${ECHO} $$t -\> $$l; \
- ${INSTALL_LINK} ${TAG_ARGS} $$l $$t; \
- done; true
-.endif
-.if defined(SYMLINKS) && !empty(SYMLINKS)
- @set ${SYMLINKS}; \
- while test $$# -ge 2; do \
- l=$$1; \
- shift; \
- t=${DESTDIR}$$1; \
- shift; \
- ${ECHO} $$t -\> $$l; \
- ${INSTALL_SYMLINK} ${TAG_ARGS} $$l $$t; \
- done; true
-.endif
+.for s t in ${LINKS}
+ @${ECHO} "$t -> $s" ;\
+ ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}$s ${DESTDIR}$t
+.endfor
+.for s t in ${SYMLINKS}
+ @${ECHO} "$t -> $s" ;\
+ ${INSTALL_SYMLINK} ${TAG_ARGS} $s ${DESTDIR}/$t
+.endfor
OpenPOWER on IntegriCloud