We want to use stage_includes as a hook, so use NO_STAGE_INCLUDES

in include/Makefile to suppress normal behavior
This commit is contained in:
Simon J. Gerraty
2014-05-16 14:47:18 +00:00
parent a5e980ce95
commit 1a682d2cea
3 changed files with 16 additions and 9 deletions
+4 -7
View File
@@ -45,6 +45,7 @@ ${group}NAME_${header:T}?= ${header:T}
STAGE_AS_SETS+= ${group}
STAGE_AS_${header:T}= ${${group}NAME_${header:T}}
stage_as.${group}: ${header}
stage_includes: stage_as.${group}
installincludes: _${group}INS_${header:T}
_${group}INS_${header:T}: ${header}
@@ -58,6 +59,7 @@ _${group}INCS+= ${header}
.endfor
.if !empty(_${group}INCS)
stage_files.${group}: ${_${group}INCS}
stage_includes: stage_files.${group}
installincludes: _${group}INS
_${group}INS: ${_${group}INCS}
@@ -91,13 +93,8 @@ realinstall: installincludes
.ORDER: beforeinstall installincludes
.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
.endif
.if !defined(NO_STAGE_INCLUDES)
staging: stage_includes
.if !empty(INCSLINKS)
staging: stage_symlinks
STAGE_SYMLINKS.INCS= ${INCSLINKS}