199256Sru# $FreeBSD$
299256Sru
399256Sru.if !target(__<bsd.init.mk>__)
499256Sru.error bsd.links.mk cannot be included directly.
599256Sru.endif
699256Sru
799256Sruafterinstall: _installlinks
899343Sru.ORDER: realinstall _installlinks
999256Sru_installlinks:
1099256Sru.if defined(LINKS) && !empty(LINKS)
1199256Sru	@set ${LINKS}; \
1299256Sru	while test $$# -ge 2; do \
1399256Sru		l=${DESTDIR}$$1; \
1499256Sru		shift; \
1599256Sru		t=${DESTDIR}$$1; \
1699256Sru		shift; \
1799256Sru		${ECHO} $$t -\> $$l; \
18245752Sbrooks		${INSTALL_LINK} $$l $$t; \
1999256Sru	done; true
2099256Sru.endif
2199256Sru.if defined(SYMLINKS) && !empty(SYMLINKS)
2299256Sru	@set ${SYMLINKS}; \
2399256Sru	while test $$# -ge 2; do \
2499256Sru		l=$$1; \
2599256Sru		shift; \
2699256Sru		t=${DESTDIR}$$1; \
2799256Sru		shift; \
2899256Sru		${ECHO} $$t -\> $$l; \
29245752Sbrooks		${INSTALL_SYMLINK} $$l $$t; \
3099256Sru	done; true
3199256Sru.endif
32