aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/Makefile
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-11-10 12:54:43 +0100
committerAnders Svensson <[email protected]>2011-11-10 15:50:29 +0100
commit248246f2aba834e75fe87a3d6f880cbfb7cd4afa (patch)
tree7c924a42354af679105ac57798d867d11b04caa8 /lib/diameter/test/Makefile
parentb3dc95296f842d452645d4120f077247c753e2ba (diff)
downloadotp-248246f2aba834e75fe87a3d6f880cbfb7cd4afa.tar.gz
otp-248246f2aba834e75fe87a3d6f880cbfb7cd4afa.tar.bz2
otp-248246f2aba834e75fe87a3d6f880cbfb7cd4afa.zip
Simplify handling of generated hrls in testsuites
Just morph include into include_lib when releasing. Not using include_lib here is due to generated hrls not residing in diameter/include until after release. See release.sed.
Diffstat (limited to 'lib/diameter/test/Makefile')
-rw-r--r--lib/diameter/test/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/diameter/test/Makefile b/lib/diameter/test/Makefile
index 83ba147fec..97d9069f4a 100644
--- a/lib/diameter/test/Makefile
+++ b/lib/diameter/test/Makefile
@@ -58,7 +58,7 @@ SUITES = $(SUITE_MODULES:diameter_%_SUITE=%)
# target like 'all' below. Target release_tests only installs source.
ERL_COMPILE_FLAGS += +warn_export_vars \
+warn_unused_vars \
- -DDIAMETER_CT=true \
+ -I ../include \
-I ../src/gen
# ----------------------------------------------------
@@ -138,6 +138,9 @@ log:
# Release Targets
# ----------------------------------------------------
+/%: % force
+ sed -f release.sed $< > $(RELSYSDIR)$@
+
ifeq ($(ERL_TOP),)
include $(DIAMETER_TOP)/make/release_targets.mk
else
@@ -153,10 +156,16 @@ release_tests_spec:
$(INSTALL_DATA) $(TEST_SPEC_FILE) \
$(COVER_SPEC_FILE) \
$(HRL_FILES) \
- $(ERL_FILES) \
$(RELSYSDIR)
+ $(MAKE) $(ERL_FILES:%=/%)
+
+force:
.PHONY: release_spec release_docs_spec release_test_specs
+.PHONY: force
+
+# Can't just make $(ERL_FILES:%=/%) phony since then implicit rule
+# searching is skipped.
# ----------------------------------------------------
@@ -165,7 +174,7 @@ depend: depend.mk
# Generate dependencies makefile.
depend.mk: depend.sed $(MODULES:%=%.erl) Makefile
(for f in $(MODULES); do \
- sed -f $< $$f.erl | sed "s@/@/$$f@"; \
+ (echo $$f; cat $$f.erl) | sed -f $<; \
done) \
> $@