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