From 5bcfeece2f55cd8570b1356d9982756e99f90b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 18 Sep 2015 14:34:58 +0200 Subject: 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. --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3