From: Alan T. DeKok Date: Sat, 7 Apr 2018 13:49:03 +0000 (-0400) Subject: add rules to build only libs / programs in a subdirectory X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b79e64f1d628e5ab0192c67affdc03908ca7efe;p=thirdparty%2Ffreeradius-server.git add rules to build only libs / programs in a subdirectory --- diff --git a/scripts/boiler.mk b/scripts/boiler.mk index ced183d7764..7b843ea97cf 100644 --- a/scripts/boiler.mk +++ b/scripts/boiler.mk @@ -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. diff --git a/scripts/libtool.mk b/scripts/libtool.mk index 57915e10536..bf1d6b48cfd 100644 --- a/scripts/libtool.mk +++ b/scripts/libtool.mk @@ -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