diff options
author | bapt <bapt@FreeBSD.org> | 2015-02-13 00:16:05 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-02-13 00:16:05 +0000 |
commit | f746c0075f56df9cd99d022729708d585573506a (patch) | |
tree | 514d67dca5268e6a94594fec6ba6178493b86121 /share/mk/bsd.files.mk | |
parent | dbd4ea64661887a9fc51723658630f2f369f45f3 (diff) | |
download | FreeBSD-src-f746c0075f56df9cd99d022729708d585573506a.zip FreeBSD-src-f746c0075f56df9cd99d022729708d585573506a.tar.gz |
Makes it more flexible to tag and define a target package
Diffstat (limited to 'share/mk/bsd.files.mk')
-rw-r--r-- | share/mk/bsd.files.mk | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/share/mk/bsd.files.mk b/share/mk/bsd.files.mk index 58083a5..a8b6bfc 100644 --- a/share/mk/bsd.files.mk +++ b/share/mk/bsd.files.mk @@ -13,6 +13,13 @@ FILESGROUPS?= FILES buildfiles: ${${group}} .endfor +.if defined(NO_ROOT) +.if !defined(TAGS) || ! ${TAGS:Mpackage=*} +TAGS+= package=${PACKAGE:Uruntime} +.endif +TAG_ARGS= -T ${TAGS:[*]:S/ /,/g} +.endif + all: buildfiles .for group in ${FILESGROUPS} @@ -40,7 +47,7 @@ ${group}NAME_${file:T}?= ${file:T} .endif installfiles-${group}: _${group}INS_${file:T} _${group}INS_${file:T}: ${file} - ${INSTALL} -T runtime -o ${${group}OWN_${.ALLSRC:T}} \ + ${INSTALL} ${TAG_ARGS} -o ${${group}OWN_${.ALLSRC:T}} \ -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ ${.ALLSRC} \ ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}} @@ -52,11 +59,11 @@ _${group}FILES+= ${file} installfiles-${group}: _${group}INS _${group}INS: ${_${group}FILES} .if defined(${group}NAME) - ${INSTALL} -T runtime -o ${${group}OWN} -g ${${group}GRP} \ + ${INSTALL} ${TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \ -m ${${group}MODE} ${.ALLSRC} \ ${DESTDIR}${${group}DIR}/${${group}NAME} .else - ${INSTALL} -T runtime -o ${${group}OWN} -g ${${group}GRP} \ + ${INSTALL} ${TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \ -m ${${group}MODE} ${.ALLSRC} ${DESTDIR}${${group}DIR} .endif .endif |