2002-07-02 12:16:54 +00:00
|
|
|
|
|
|
|
.if !target(__<bsd.init.mk>__)
|
|
|
|
.error bsd.links.mk cannot be included directly.
|
|
|
|
.endif
|
|
|
|
|
2015-02-13 00:16:05 +00:00
|
|
|
.if defined(NO_ROOT)
|
|
|
|
.if !defined(TAGS) || ! ${TAGS:Mpackage=*}
|
2015-03-17 19:10:51 +00:00
|
|
|
TAGS+= package=${PACKAGE}
|
2015-02-13 00:16:05 +00:00
|
|
|
.endif
|
2015-03-17 19:10:51 +00:00
|
|
|
TAG_ARGS= -T ${TAGS:[*]:S/ /,/g}
|
2015-02-13 00:16:05 +00:00
|
|
|
.endif
|
|
|
|
|
2002-07-02 12:16:54 +00:00
|
|
|
afterinstall: _installlinks
|
2002-07-03 12:28:03 +00:00
|
|
|
.ORDER: realinstall _installlinks
|
2002-07-02 12:16:54 +00:00
|
|
|
_installlinks:
|
2015-03-15 21:50:58 +00:00
|
|
|
.for s t in ${LINKS}
|
2016-02-08 12:16:01 +00:00
|
|
|
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${s} ${DESTDIR}${t}
|
2015-03-15 21:50:58 +00:00
|
|
|
.endfor
|
|
|
|
.for s t in ${SYMLINKS}
|
2017-08-12 18:11:41 +00:00
|
|
|
${INSTALL_SYMLINK} ${TAG_ARGS} ${s} ${DESTDIR}${t}
|
2015-03-15 21:50:58 +00:00
|
|
|
.endfor
|