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