freebsd-dev/share/mk/bsd.links.mk

23 lines
501 B
Makefile
Raw Normal View History

# $FreeBSD$
.if !target(__<bsd.init.mk>__)
.error bsd.links.mk cannot be included directly.
.endif
.if defined(NO_ROOT)
.if !defined(TAGS) || ! ${TAGS:Mpackage=*}
2015-03-17 19:10:51 +00:00
TAGS+= package=${PACKAGE}
.endif
2015-03-17 19:10:51 +00:00
TAG_ARGS= -T ${TAGS:[*]:S/ /,/g}
.endif
afterinstall: _installlinks
.ORDER: realinstall _installlinks
_installlinks:
.for s t in ${LINKS}
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${s} ${DESTDIR}${t}
.endfor
.for s t in ${SYMLINKS}
${INSTALL_SYMLINK} ${TAG_ARGS} ${s} ${DESTDIR}${t}
.endfor