From: Alan T. DeKok Date: Sat, 3 Nov 2012 12:53:12 +0000 (-0400) Subject: Skip compile sources if they won't be linked to a lib/exe X-Git-Tag: release_3_0_0_beta1~1610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7daade8ed316ce88eeb9f89807fd64f2a6347cb;p=thirdparty%2Ffreeradius-server.git Skip compile sources if they won't be linked to a lib/exe --- diff --git a/scripts/boiler.mk b/scripts/boiler.mk index 521a9754907..6ba457b57c6 100644 --- a/scripts/boiler.mk +++ b/scripts/boiler.mk @@ -341,6 +341,10 @@ define INCLUDE_SUBMAKEFILE # Push the current target onto the target stack. TGT_STACK := $$(call PUSH,$${TGT_STACK},$${TGT}) + # If there's no target, don't build the sources. + ifneq "$$(strip $${TARGET})" "" + + # if there's no sources, don't do the automatic object build ifneq "$$(strip $${SOURCES})" "" # This makefile builds one or more objects from source. Validate the # specified sources against the supported source file types. @@ -378,6 +382,7 @@ define INCLUDE_SUBMAKEFILE $${OBJS}: SRC_DEFS := $$(addprefix -D,$${SRC_DEFS}) $${OBJS}: SRC_INCDIRS := $$(addprefix -I,$${SRC_INCDIRS}) endif + endif ifneq "$$(strip $${SUBMAKEFILES})" "" # This makefile has submakefiles. Recursively include them.