summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.incs.mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-06-21 22:27:52 +0000
committerbapt <bapt@FreeBSD.org>2015-06-21 22:27:52 +0000
commite432526cab0fe8fe09c53b295d9ceaf68b886a8c (patch)
treeeaef1c29449d8b85ec062a2a038e3fdad1c656d3 /share/mk/bsd.incs.mk
parentb7bcf4a7d190887908f831b6df1f8a13313aa1a4 (diff)
downloadFreeBSD-src-e432526cab0fe8fe09c53b295d9ceaf68b886a8c.zip
FreeBSD-src-e432526cab0fe8fe09c53b295d9ceaf68b886a8c.tar.gz
Simplify symlinks on include files by using bmake's multivariable .for loops
Diffstat (limited to 'share/mk/bsd.incs.mk')
-rw-r--r--share/mk/bsd.incs.mk13
1 files changed, 4 insertions, 9 deletions
diff --git a/share/mk/bsd.incs.mk b/share/mk/bsd.incs.mk
index 7637256..e1e0a4a 100644
--- a/share/mk/bsd.incs.mk
+++ b/share/mk/bsd.incs.mk
@@ -77,15 +77,10 @@ _${group}INS: ${_${group}INCS}
.if defined(INCSLINKS) && !empty(INCSLINKS)
installincludes:
- @set ${INCSLINKS}; \
- while test $$# -ge 2; do \
- l=$$1; \
- shift; \
- t=${DESTDIR}$$1; \
- shift; \
- ${ECHO} $$t -\> $$l; \
- ${INSTALL_SYMLINK} $$l $$t; \
- done; true
+.for s t in ${INCSLINKS}
+ @${ECHO} "$t -> $s" ; \
+ ${INSTALL_SYMLINK} $s ${DESTDIR}$t
+.endfor
.endif
.endif # !target(installincludes)
OpenPOWER on IntegriCloud