bsd.links.mk revision 99256
199256Sru# $FreeBSD: head/share/mk/bsd.links.mk 99256 2002-07-02 12:16:54Z ru $
299256Sru
399256Sru.if !target(__<bsd.init.mk>__)
499256Sru.error bsd.links.mk cannot be included directly.
599256Sru.endif
699256Sru
799256Sruafterinstall: _installlinks
899256Sru_installlinks:
999256Sru.if defined(LINKS) && !empty(LINKS)
1099256Sru	@set ${LINKS}; \
1199256Sru	while test $$# -ge 2; do \
1299256Sru		l=${DESTDIR}$$1; \
1399256Sru		shift; \
1499256Sru		t=${DESTDIR}$$1; \
1599256Sru		shift; \
1699256Sru		${ECHO} $$t -\> $$l; \
1799256Sru		ln -f $$l $$t; \
1899256Sru	done; true
1999256Sru.endif
2099256Sru.if defined(SYMLINKS) && !empty(SYMLINKS)
2199256Sru	@set ${SYMLINKS}; \
2299256Sru	while test $$# -ge 2; do \
2399256Sru		l=$$1; \
2499256Sru		shift; \
2599256Sru		t=${DESTDIR}$$1; \
2699256Sru		shift; \
2799256Sru		${ECHO} $$t -\> $$l; \
2899256Sru		ln -fs $$l $$t; \
2999256Sru	done; true
3099256Sru.endif
31