1# $FreeBSD$ 2 3.if !target(__<bsd.init.mk>__) 4.error bsd.links.mk cannot be included directly. 5.endif 6 7.if defined(NO_ROOT) 8.if !defined(TAGS) || ! ${TAGS:Mpackage=*} 9TAGS+= package=${PACKAGE} 10.endif 11TAG_ARGS= -T ${TAGS:[*]:S/ /,/g} 12.endif 13 14afterinstall: _installlinks 15.ORDER: realinstall _installlinks 16_installlinks: 17.for s t in ${LINKS} 18 ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${s} ${DESTDIR}${t} 19.endfor 20.for s t in ${SYMLINKS} 21 ${INSTALL_SYMLINK} ${TAG_ARGS} ${s} ${DESTDIR}${t} 22.endfor 23