aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/Makefile.common
diff options
context:
space:
mode:
authorKazuhiko Sakaguchi2020-06-16 02:11:03 +0900
committerKazuhiko Sakaguchi2020-06-27 13:10:12 +0900
commit36613c83d65aa821b01a9fac38c479af65ef3589 (patch)
tree152e0b99c59b748f01a553fc149ac4588be4219b /mathcomp/Makefile.common
parent4a0bc9e3de7a19439f45ba59405015033607ed68 (diff)
Fix some Makefile issues and rename `hierarchy_test.v` to `test_hierarchy_all.v`
Diffstat (limited to 'mathcomp/Makefile.common')
-rw-r--r--mathcomp/Makefile.common10
1 files changed, 6 insertions, 4 deletions
diff --git a/mathcomp/Makefile.common b/mathcomp/Makefile.common
index 857ddef..b6b71ea 100644
--- a/mathcomp/Makefile.common
+++ b/mathcomp/Makefile.common
@@ -56,11 +56,10 @@ Makefile.coq: pre-makefile $(COQPROJECT) Makefile
# Test suite ---------------------------------------------------------
-test_suite/hierarchy_test.v: build
- mkdir -p test_suite
- COQBIN=$(COQBIN) ocaml ../etc/utils/hierarchy.ml -verify -R . mathcomp -lib all.all > test_suite/hierarchy_test.v
+test_suite/test_hierarchy_all.v: build
+ COQBIN=$(COQBIN) ocaml ../etc/utils/hierarchy.ml -verify -R . mathcomp -lib all.all > test_suite/test_hierarchy_all.v
-Makefile.test-suite.coq: test_suite/hierarchy_test.v
+Makefile.test-suite.coq: test_suite/test_hierarchy_all.v
$(COQMAKEFILE) $(COQMAKEFILEOPTIONS) -f Make.test-suite -o Makefile.test-suite.coq
# Global config, build, clean and distclean --------------------------
@@ -128,6 +127,9 @@ endif
%.vo: __always__ Makefile.coq
+$(COQMAKE) $@
+test_suite/%.vo: __always__ Makefile.test-suite.coq
+ +$(COQMAKE_TESTSUITE) $@
+
doc: __always__ Makefile.coq
mkdir -p _build_doc/
cp -r $(COQFILES) -t _build_doc/ --parents