summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.incs.mk
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2012-11-08 21:40:05 +0000
committersjg <sjg@FreeBSD.org>2012-11-08 21:40:05 +0000
commit0672f433b52e31c72ca94c7ee11a6d84936123c9 (patch)
tree1c46d6ea54bf922dc9702d571551774bb0437bfd /share/mk/bsd.incs.mk
parentb2b32894a5c3e28859525c133dd41d0ef8cf031b (diff)
downloadFreeBSD-src-0672f433b52e31c72ca94c7ee11a6d84936123c9.zip
FreeBSD-src-0672f433b52e31c72ca94c7ee11a6d84936123c9.tar.gz
defined(${group}NAME) is also a trigger for special handling
Diffstat (limited to 'share/mk/bsd.incs.mk')
-rw-r--r--share/mk/bsd.incs.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/share/mk/bsd.incs.mk b/share/mk/bsd.incs.mk
index 8182b30..6408a73 100644
--- a/share/mk/bsd.incs.mk
+++ b/share/mk/bsd.incs.mk
@@ -31,7 +31,7 @@ _${group}INCS=
.for header in ${${group}}
.if defined(${group}OWN_${header:T}) || defined(${group}GRP_${header:T}) || \
defined(${group}MODE_${header:T}) || defined(${group}DIR_${header:T}) || \
- defined(${group}NAME_${header:T})
+ defined(${group}NAME_${header:T}) || defined(${group}NAME)
${group}OWN_${header:T}?= ${${group}OWN}
${group}GRP_${header:T}?= ${${group}GRP}
${group}MODE_${header:T}?= ${${group}MODE}
@@ -89,13 +89,17 @@ installincludes:
realinstall: installincludes
.ORDER: beforeinstall installincludes
-.if ${MK_STAGING} != "no"
+.if ${MK_STAGING} != "no" && !defined(_SKIP_BUILD)
.if !target(stage_includes)
.if !empty(STAGE_SETS)
buildincludes: stage_files
.if !empty(STAGE_AS_SETS)
buildincludes: stage_as
.endif
+.if !empty(INCSLINKS)
+stage_files: stage_symlinks
+STAGE_SYMLINKS.INCS= ${INCSLINKS:S,${INCSDIR}/,,}
+.endif
.endif
.endif
.endif
OpenPOWER on IntegriCloud