bsd.links.mk revision 99256
1# $FreeBSD: head/share/mk/bsd.links.mk 99256 2002-07-02 12:16:54Z ru $ 2 3.if !target(__<bsd.init.mk>__) 4.error bsd.links.mk cannot be included directly. 5.endif 6 7afterinstall: _installlinks 8_installlinks: 9.if defined(LINKS) && !empty(LINKS) 10 @set ${LINKS}; \ 11 while test $$# -ge 2; do \ 12 l=${DESTDIR}$$1; \ 13 shift; \ 14 t=${DESTDIR}$$1; \ 15 shift; \ 16 ${ECHO} $$t -\> $$l; \ 17 ln -f $$l $$t; \ 18 done; true 19.endif 20.if defined(SYMLINKS) && !empty(SYMLINKS) 21 @set ${SYMLINKS}; \ 22 while test $$# -ge 2; do \ 23 l=$$1; \ 24 shift; \ 25 t=${DESTDIR}$$1; \ 26 shift; \ 27 ${ECHO} $$t -\> $$l; \ 28 ln -fs $$l $$t; \ 29 done; true 30.endif 31