aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-10-16 12:27:23 +0200
committerAnders Svensson <[email protected]>2011-10-18 15:37:39 +0200
commit0f5d56109d7b51298a2c90dae1b11ba5819471b2 (patch)
treeab0513a3001aa138ea2b6de878caf7bfbbb7ca30 /lib
parent28580ff54b09710358ad366975289ef9a86bb867 (diff)
downloadotp-0f5d56109d7b51298a2c90dae1b11ba5819471b2.tar.gz
otp-0f5d56109d7b51298a2c90dae1b11ba5819471b2.tar.bz2
otp-0f5d56109d7b51298a2c90dae1b11ba5819471b2.zip
Simpler release targets for src subdirectories
Diffstat (limited to 'lib')
-rw-r--r--lib/diameter/src/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile
index 861fc0c435..f6ceb7217f 100644
--- a/lib/diameter/src/Makefile
+++ b/lib/diameter/src/Makefile
@@ -194,15 +194,12 @@ release_spec: opt
$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) $(DICT_HRL_FILES) \
$(RELSYSDIR)/include
$(INSTALL_DATA) $(EXAMPLE_FILES) $(RELSYSDIR)/examples
- for dir in $(TARGET_DIRS); do \
- $(MAKE) release_subdir SRCDIR=$$dir; \
- done
+ $(MAKE) $(TARGET_DIRS:%/=release_src_%)
-release_subdir:
- [ -d "$(SRCDIR)" ]
- $(INSTALL_DATA) $(filter $(SRCDIR)%,$(TARGET_MODULES:%=%.erl) \
- $(INTERNAL_HRL_FILES)) \
- $(RELSYSDIR)/src/$(SRCDIR)
+$(TARGET_DIRS:%/=release_src_%): release_src_%:
+ $(INSTALL_DATA) $(filter $*/%,$(TARGET_MODULES:%=%.erl) \
+ $(INTERNAL_HRL_FILES)) \
+ $(RELSYSDIR)/src/$*
release_docs_spec:
@@ -235,7 +232,7 @@ depend.mk: depend.sed $(MODULES:%=%.erl) Makefile
.PRECIOUS: $(DICT_ERL_FILES) $(DICT_HRL_FILES)
.PHONY: app clean depend dict info release_subdir
.PHONY: debug opt release_docs_spec release_spec
-.PHONY: $(TARGET_DIRS:%/=%)
+.PHONY: $(TARGET_DIRS:%/=%) $(TARGET_DIRS:%/=release_src_%)
.SECONDEXPANSION: