From 02a27877d3d388540ba7b6f24da5df908fad8934 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 24 Jan 2015 16:34:34 +0100 Subject: Make "test" target depend on "cmake_build" cmake doesn't (re)build the project if the tests are run. This change allows to run "make test" without having to run "make" before, for example after modifying source files or from a clean tree. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6f2af0c..c9f9021 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ $(SRCDIR)/case_fold_switch.inc: $(DATADIR)/CaseFolding-3.2.0.txt $(SRCDIR)/scanners.c: $(SRCDIR)/scanners.re re2c --case-insensitive -b -i --no-generation-date -o $@ $< -test: $(SPEC) $(BUILDDIR) +test: $(SPEC) cmake_build make -C $(BUILDDIR) test || (cat $(BUILDDIR)/Testing/Temporary/LastTest.log && exit 1) $(ALLTESTS): spec.txt -- cgit v1.2.3