aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2015-01-24 16:34:34 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2015-01-24 16:42:54 +0100
commit02a27877d3d388540ba7b6f24da5df908fad8934 (patch)
tree56d30bc055d550fbe4224833e4b26a37ff7fb079
parent10fc979567d23480f5a3e1fb8437d1a0fdd53c0b (diff)
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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