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 @${ECHO} "$t -> $s" ;\ 19 ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}$s ${DESTDIR}$t 20.endfor 21.for s t in ${SYMLINKS} 22 @${ECHO} "$t -> $s" ;\ 23 ${INSTALL_SYMLINK} ${TAG_ARGS} $s ${DESTDIR}/$t 24.endfor 25