aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfilliatr2002-02-14 14:39:07 +0000
committerfilliatr2002-02-14 14:39:07 +0000
commit67f72c93f5f364591224a86c52727867e02a8f71 (patch)
treeecf630daf8346e77e6620233d8f3e6c18a0c9b3c /Makefile
parentb239b208eb9a66037b0c629cf7ccb6e4b110636a (diff)
option -dump-glob pour coqdoc
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2474 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8117134042..c9ffe0b835 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,8 @@ CAMLP4DEPS=sed -n -e 's|^(\*.*camlp4deps: "\(.*\)".*\*)$$|\1|p'
COQINCLUDES= # coqtop includes itself the needed paths
+GLOB= # is "-dump-glob file" when making the doc
+
###########################################################################
# Objects files
###########################################################################
@@ -343,7 +345,7 @@ INITVO=theories/Init/Datatypes.vo theories/Init/Peano.vo \
theories/Init/Logic_TypeSyntax.vo
theories/Init/%.vo: theories/Init/%.v states/barestate.coq $(COQC)
- $(COQTOP) -boot -$(BEST) -R theories Coq -is states/barestate.coq -compile $*
+ $(COQTOP) -boot -$(BEST) -R theories Coq -is states/barestate.coq $(GLOB) -compile $*
init: $(INITVO)
@@ -476,6 +478,13 @@ wellfounded: $(WELLFOUNDEDVO)
reals: $(REALSVO)
sorting: $(SORTINGVO)
+# globalizations (for coqdoc)
+
+glob.dump::
+ rm -f glob.dump
+ rm -f theories/*/*.vo
+ make GLOB="-dump-glob glob.dump" world
+
clean::
rm -f theories/*/*.vo
rm -f tactics/*.vo
@@ -810,7 +819,7 @@ ML4FILES += lib/pp.ml4 \
$(OCAMLC) $(BYTEFLAGS) -pp "$(CAMLP4O) $(CAMLP4EXTENDFLAGS) `$(CAMLP4DEPS) $<` -impl" -c -impl $<
.v.vo:
- $(COQTOP) -boot -$(BEST) $(COQINCLUDES) -compile $*
+ $(COQTOP) -boot -$(BEST) $(COQINCLUDES) $(GLOB) -compile $*
.el.elc:
echo "(setq load-path (cons \".\" load-path))" > $*.compile