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.if defined(LINKTAGS) 18 ${INSTALL_LINK} ${TAG_ARGS:D${TAG_ARGS},${LINKTAGS}} ${DESTDIR}${s} ${DESTDIR}${t} 19.else 20 ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${s} ${DESTDIR}${t} 21.endif 22.endfor 23.for s t in ${SYMLINKS} 24.if defined(LINKTAGS) 25 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},${LINKTAGS}} ${s} ${DESTDIR}${t} 26.else 27 ${INSTALL_SYMLINK} ${TAG_ARGS} ${s} ${DESTDIR}${t} 28.endif 29.endfor 30