]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Skip compile sources if they won't be linked to a lib/exe
authorAlan T. DeKok <aland@freeradius.org>
Sat, 3 Nov 2012 12:53:12 +0000 (08:53 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 3 Nov 2012 12:53:12 +0000 (08:53 -0400)
scripts/boiler.mk

index 521a97549079cf5787b9eeeb4175e5d51b0e9506..6ba457b57c628d814caedde9599308adfc546a8b 100644 (file)
@@ -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.