From 6427a5d492f7dedfa84ee863b709265f79450a8d Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Thu, 8 Nov 2012 21:40:05 +0000 Subject: [PATCH] defined(${group}NAME) is also a trigger for special handling --- share/mk/bsd.incs.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.incs.mk b/share/mk/bsd.incs.mk index 8182b30a948..6408a73defc 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