aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-18 14:34:58 +0200
committerLoïc Hoguin <[email protected]>2015-09-18 14:34:58 +0200
commit5bcfeece2f55cd8570b1356d9982756e99f90b40 (patch)
treeb3ec855b58fbdb522a23c5739dad905753232a37 /Makefile
parent9c3f9f1dfe73738d182ddd9832406b2ab61293f7 (diff)
downloaderlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.tar.gz
erlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.tar.bz2
erlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.zip
Test "no .app.src" by default, test legacy with LEGACY=1
Also fixes two bugs with the new "no .app.src" method. All tests now pass with both methods. We can now test specific cases with make check c=$CASE.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3e7364a..5eff5d6 100644
--- a/Makefile
+++ b/Makefile
@@ -24,12 +24,17 @@ all:
awk 'FNR==1 && NR!=1{print ""}1' $(patsubst %,%.mk,$(BUILD_CONFIG)) \
| sed 's/^ERLANG_MK_VERSION = .*/ERLANG_MK_VERSION = $(ERLANG_MK_VERSION)/' > $(ERLANG_MK)
-ifeq ($(p),)
+ifdef p
check:
- $(MAKE) -C test
+ $(MAKE) -C test pkg-$p
else
+ifdef c
check:
- $(MAKE) -C test pkg-$(p)
+ $(MAKE) -C test $c LEGACY=$(LEGACY)
+else
+check:
+ $(MAKE) -C test LEGACY=$(LEGACY)
+endif
endif
clean: