Simplify symlinks on include files by using bmake's multivariable .for loops
This commit is contained in:
parent
07a275ab32
commit
5428abe13d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284684
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user