diff options
Diffstat (limited to 'mathcomp/Makefile.common')
| -rw-r--r-- | mathcomp/Makefile.common | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/mathcomp/Makefile.common b/mathcomp/Makefile.common index 857ddef..b1603e6 100644 --- a/mathcomp/Makefile.common +++ b/mathcomp/Makefile.common @@ -56,12 +56,26 @@ 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 +ifneq "$(TEST_SKIP_BUILD)" "" +TEST_DEP := +MATHCOMP_PATH := -R test_suite mathcomp.test_suite +else +TEST_DEP := build +MATHCOMP_PATH := -R . mathcomp +endif -Makefile.test-suite.coq: test_suite/hierarchy_test.v - $(COQMAKEFILE) $(COQMAKEFILEOPTIONS) -f Make.test-suite -o Makefile.test-suite.coq +test_suite/test_hierarchy_all.v: $(TEST_DEP) + COQBIN=$(COQBIN) ocaml ../etc/utils/hierarchy.ml -verify $(MATHCOMP_PATH) \ + -lib all_ssreflect \ + -lib all_algebra \ + -lib all_field \ + -lib all_character \ + -lib all_fingroup \ + -lib all_solvable \ + > test_suite/test_hierarchy_all.v + +Makefile.test-suite.coq: test_suite/test_hierarchy_all.v + $(COQMAKEFILE) $(COQMAKEFILEOPTIONS) -f Make.test-suite $(MATHCOMP_PATH) -o Makefile.test-suite.coq # Global config, build, clean and distclean -------------------------- config: sub-config this-config @@ -128,6 +142,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 |
