aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbarras2008-09-02 15:05:23 +0000
committerbarras2008-09-02 15:05:23 +0000
commit3e314a8811fbc94d46247da9969432d94ed5eff0 (patch)
tree5ae94245bf1204b61fc15b08ed322a4649bce33f
parent19aae56bb6cb1245c17851d87ac3368e03e5311c (diff)
added Makefile target: validate (to recheck all .vo in a row)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11347 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--Makefile.build8
-rw-r--r--Makefile.common8
2 files changed, 13 insertions, 3 deletions
diff --git a/Makefile.build b/Makefile.build
index 2ccf0ee864..89fbd4fa86 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -496,6 +496,10 @@ install-pcoq-manpages:
# tests
###########################################################################
+validate:: $(BESTCHICKEN) $(ALLVO)
+ $(SHOW)'COQCHK <theories & contrib>'
+ $(BESTCHICKEN) -boot -o -m $(ALLMODS)
+
check:: world
cd test-suite; \
env COQBIN=../bin COQLIB=.. ./check -$(BEST) | tee check.log
@@ -882,8 +886,8 @@ endif
$(HIDE)rm -f $*.glob
$(HIDE)$(BOOTCOQTOP) -compile $*
ifdef VALIDATE
- $(SHOW)'COQCHK $(shell basename $*)'
- $(HIDE)$(BESTCHICKEN) -silent -norec $(shell basename $*) \
+ $(SHOW)'COQCHK $(call vo_to_mod,$@)'
+ $(HIDE)$(BESTCHICKEN) -boot -silent -norec $(call vo_to_mod,$@) \
|| ( RV=$$?; rm -f "$@"; exit $${RV} )
endif
diff --git a/Makefile.common b/Makefile.common
index b068e72fbc..e323e2d9bc 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -810,6 +810,12 @@ CONTRIBVO:= $(OMEGAVO) $(ROMEGAVO) $(MICROMEGAVO) $(RINGVO) $(FIELDVO) \
ALLVO:= $(INITVO) $(THEORIESVO) $(CONTRIBVO)
VFILES:= $(ALLVO:.vo=.v)
+# convert a (stdlib) filename into a module name:
+# remove .vo, replace theories and contrib by Coq, and replace slashes by dots
+vo_to_mod = $(subst /,.,$(patsubst theories/%,Coq.%,$(patsubst contrib/%,Coq.%,$(1:.vo=))))
+
+ALLMODS:=$(call vo_to_mod,$(ALLVO))
+
LIBFILES:=$(THEORIESVO) $(CONTRIBVO)
LIBFILESLIGHT:=$(THEORIESLIGHTVO)
@@ -871,7 +877,7 @@ VO_TARGETS:=logic arith bool narith zarith qarith lists strings sets \
DOC_TARGETS:=doc doc-html doc-ps doc-pdf stdlib refman tutorial faq rectutorial refman-quick refman-nodep stdlib-nodep
STAGE3_TARGETS:=world install coqide coqide-files coq coqlib \
coqlight states pcoq-files check init theories theories-light contrib \
- $(DOC_TARGETS) $(VO_TARGETS)
+ $(DOC_TARGETS) $(VO_TARGETS) validate
# For emacs: