aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src
diff options
context:
space:
mode:
authorAnders Svensson <anders@erlang.org>2011-10-16 12:10:08 +0200
committerAnders Svensson <anders@erlang.org>2011-10-17 12:30:58 +0200
commit28580ff54b09710358ad366975289ef9a86bb867 (patch)
tree259e75d872a765fff091752f4070ef9e421528c2 /lib/diameter/src
parent14bf1dc855bbd973bb15578f418e37ab2d4f17fe (diff)
downloadotp-28580ff54b09710358ad366975289ef9a86bb867.tar.gz
otp-28580ff54b09710358ad366975289ef9a86bb867.tar.bz2
otp-28580ff54b09710358ad366975289ef9a86bb867.zip
Use secondary expansion for src subdirectory rules
Makes for a quieter rule with no recursion.
Diffstat (limited to 'lib/diameter/src')
-rw-r--r--lib/diameter/src/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile
index a72bf4420b..861fc0c435 100644
--- a/lib/diameter/src/Makefile
+++ b/lib/diameter/src/Makefile
@@ -171,11 +171,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
app: $(APP_TARGET) $(APPUP_TARGET)
dict: $(DICT_ERL_FILES)
-# Make the modules from a subdirectory.
-$(TARGET_DIRS:%/=%):
- $(MAKE) \
- $(patsubst $@/%,$(EBIN)/%.$(EMULATOR),$(filter $@/%,$(TARGET_MODULES)))
-
# ----------------------------------------------------
# Release Target
# ----------------------------------------------------
@@ -241,3 +236,9 @@ depend.mk: depend.sed $(MODULES:%=%.erl) Makefile
.PHONY: app clean depend dict info release_subdir
.PHONY: debug opt release_docs_spec release_spec
.PHONY: $(TARGET_DIRS:%/=%)
+
+.SECONDEXPANSION:
+
+# Make the modules from a subdirectory.
+$(TARGET_DIRS:%/=%): \
+ $$(patsubst $$@/%,$(EBIN)/%.$(EMULATOR),$$(filter $$@/%,$(TARGET_MODULES)))