diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2015-01-24 16:34:34 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2015-01-24 16:42:54 +0100 |
commit | 02a27877d3d388540ba7b6f24da5df908fad8934 (patch) | |
tree | 56d30bc055d550fbe4224833e4b26a37ff7fb079 /Makefile | |
parent | 10fc979567d23480f5a3e1fb8437d1a0fdd53c0b (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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |