]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add rules to build only libs / programs in a subdirectory
authorAlan T. DeKok <aland@freeradius.org>
Sat, 7 Apr 2018 13:49:03 +0000 (09:49 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 10 Apr 2018 13:10:44 +0000 (09:10 -0400)
scripts/boiler.mk
scripts/libtool.mk

index ced183d7764644e480fc79810d76145ef46fb0eb..7b843ea97cfaa56255ac231103c7edd40133a56b 100644 (file)
@@ -213,6 +213,9 @@ define ADD_TARGET_RULE.exe
     ifneq "${ANALYZE.c}" ""
         scan.${1}: $${${1}_PLISTS}
     endif
+
+    .PHONY: $(DIR)
+    $(DIR)/: ${1}
 endef
 
 # ADD_TARGET_RULE.a - Build a static library target.
@@ -234,6 +237,9 @@ define ADD_TARGET_RULE.a
     ifneq "${ANALYZE.c}" ""
         scan.${1}: $${${1}_PLISTS}
     endif
+
+    .PHONY: $(DIR)
+    $(DIR)/: ${1}
 endef
 
 # ADD_TARGET_RULE.so - Build a ".so" target.
index 57915e105368799fef368b072d7eda6c18c2a528..bf1d6b48cfde3c5a65c0af42f410dc90373c5c0f 100644 (file)
@@ -104,6 +104,9 @@ define ADD_TARGET_RULE.la
     ifneq "${ANALYZE.c}" ""
         scan.${1}: $${${1}_PLISTS}
     endif
+
+    .PHONY: $(DIR)
+    $(DIR)/: ${1}
 endef
 
 # ADD_LOCAL_RULE.exe - Parametric "function" that adds a rule to build
@@ -121,6 +124,9 @@ define ADD_LOCAL_RULE.exe
                 $${${1}_LDFLAGS} $${${1}_OBJS} $${${1}_LOCAL_PRLIBS} \
                 $${LDLIBS} $${${1}_LDLIBS}
            $(Q)$${${1}_POSTMAKE}
+
+    .PHONY: $(DIR)
+    $(DIR)/: ${1}
 endef
 
 # ADD_LOCAL_RULE.la - Parametric "function" that adds a rule to build