aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.depend94
-rw-r--r--Makefile26
2 files changed, 54 insertions, 66 deletions
diff --git a/.depend b/.depend
index aaf9e30500..0266461f0a 100644
--- a/.depend
+++ b/.depend
@@ -1426,14 +1426,14 @@ pretyping/evarconv.cmx: lib/util.cmx pretyping/typing.cmx \
pretyping/evarutil.cmo: lib/util.cmi kernel/univ.cmi pretyping/typing.cmi \
kernel/typeops.cmi pretyping/termops.cmi kernel/term.cmi kernel/sign.cmi \
pretyping/reductionops.cmi kernel/reduction.cmi \
- pretyping/pretype_errors.cmi lib/pp.cmi kernel/names.cmi \
- library/nameops.cmi library/global.cmi pretyping/evd.cmi \
+ pretyping/pretype_errors.cmi kernel/pre_env.cmi lib/pp.cmi \
+ kernel/names.cmi library/nameops.cmi library/global.cmi pretyping/evd.cmi \
kernel/environ.cmi pretyping/evarutil.cmi
pretyping/evarutil.cmx: lib/util.cmx kernel/univ.cmx pretyping/typing.cmx \
kernel/typeops.cmx pretyping/termops.cmx kernel/term.cmx kernel/sign.cmx \
pretyping/reductionops.cmx kernel/reduction.cmx \
- pretyping/pretype_errors.cmx lib/pp.cmx kernel/names.cmx \
- library/nameops.cmx library/global.cmx pretyping/evd.cmx \
+ pretyping/pretype_errors.cmx kernel/pre_env.cmx lib/pp.cmx \
+ kernel/names.cmx library/nameops.cmx library/global.cmx pretyping/evd.cmx \
kernel/environ.cmx pretyping/evarutil.cmi
pretyping/evd.cmo: lib/util.cmi kernel/univ.cmi pretyping/termops.cmi \
kernel/term.cmi kernel/sign.cmi kernel/reduction.cmi lib/pp.cmi \
@@ -1940,9 +1940,10 @@ tactics/equality.cmo: toplevel/vernacexpr.cmo lib/util.cmi kernel/univ.cmi \
lib/pp.cmi pretyping/pattern.cmi kernel/names.cmi library/nameops.cmi \
pretyping/matching.cmi proofs/logic.cmi library/libnames.cmi \
pretyping/inductiveops.cmi kernel/inductive.cmi pretyping/indrec.cmi \
- tactics/hipattern.cmi pretyping/evd.cmi pretyping/evarutil.cmi \
- pretyping/evarconv.cmi proofs/evar_refiner.cmi kernel/environ.cmi \
- kernel/declarations.cmi interp/coqlib.cmi tactics/equality.cmi
+ tactics/hipattern.cmi library/global.cmi pretyping/evd.cmi \
+ pretyping/evarutil.cmi pretyping/evarconv.cmi proofs/evar_refiner.cmi \
+ kernel/environ.cmi kernel/declarations.cmi interp/coqlib.cmi \
+ tactics/equality.cmi
tactics/equality.cmx: toplevel/vernacexpr.cmx lib/util.cmx kernel/univ.cmx \
pretyping/typing.cmx kernel/typeops.cmx pretyping/termops.cmx \
kernel/term.cmx tactics/tactics.cmx tactics/tacticals.cmx \
@@ -1952,9 +1953,10 @@ tactics/equality.cmx: toplevel/vernacexpr.cmx lib/util.cmx kernel/univ.cmx \
lib/pp.cmx pretyping/pattern.cmx kernel/names.cmx library/nameops.cmx \
pretyping/matching.cmx proofs/logic.cmx library/libnames.cmx \
pretyping/inductiveops.cmx kernel/inductive.cmx pretyping/indrec.cmx \
- tactics/hipattern.cmx pretyping/evd.cmx pretyping/evarutil.cmx \
- pretyping/evarconv.cmx proofs/evar_refiner.cmx kernel/environ.cmx \
- kernel/declarations.cmx interp/coqlib.cmx tactics/equality.cmi
+ tactics/hipattern.cmx library/global.cmx pretyping/evd.cmx \
+ pretyping/evarutil.cmx pretyping/evarconv.cmx proofs/evar_refiner.cmx \
+ kernel/environ.cmx kernel/declarations.cmx interp/coqlib.cmx \
+ tactics/equality.cmi
tactics/evar_tactics.cmo: lib/util.cmi pretyping/termops.cmi kernel/term.cmi \
tactics/tactics.cmi proofs/tacmach.cmi proofs/tacexpr.cmo kernel/sign.cmi \
proofs/refiner.cmi proofs/proof_type.cmi pretyping/evd.cmi \
@@ -3718,23 +3720,21 @@ contrib/subtac/g_subtac.cmx: toplevel/vernacinterp.cmx \
contrib/subtac/subtac_cases.cmo: lib/util.cmi kernel/typeops.cmi \
kernel/type_errors.cmi pretyping/termops.cmi kernel/term.cmi \
contrib/subtac/subtac_utils.cmi kernel/sign.cmi pretyping/retyping.cmi \
- pretyping/reductionops.cmi pretyping/rawterm.cmi parsing/printer.cmi \
- pretyping/pretype_errors.cmi parsing/prettyp.cmi lib/pp.cmi \
- kernel/names.cmi library/nameops.cmi pretyping/inductiveops.cmi \
- kernel/inductive.cmi library/global.cmi pretyping/evd.cmi \
- pretyping/evarutil.cmi pretyping/evarconv.cmi kernel/environ.cmi \
- kernel/declarations.cmi pretyping/coercion.cmi kernel/closure.cmi \
- contrib/subtac/subtac_cases.cmi
+ pretyping/reductionops.cmi pretyping/rawterm.cmi \
+ pretyping/pretype_errors.cmi lib/pp.cmi kernel/names.cmi \
+ library/nameops.cmi pretyping/inductiveops.cmi kernel/inductive.cmi \
+ library/global.cmi pretyping/evd.cmi pretyping/evarutil.cmi \
+ pretyping/evarconv.cmi kernel/environ.cmi kernel/declarations.cmi \
+ pretyping/coercion.cmi kernel/closure.cmi contrib/subtac/subtac_cases.cmi
contrib/subtac/subtac_cases.cmx: lib/util.cmx kernel/typeops.cmx \
kernel/type_errors.cmx pretyping/termops.cmx kernel/term.cmx \
contrib/subtac/subtac_utils.cmx kernel/sign.cmx pretyping/retyping.cmx \
- pretyping/reductionops.cmx pretyping/rawterm.cmx parsing/printer.cmx \
- pretyping/pretype_errors.cmx parsing/prettyp.cmx lib/pp.cmx \
- kernel/names.cmx library/nameops.cmx pretyping/inductiveops.cmx \
- kernel/inductive.cmx library/global.cmx pretyping/evd.cmx \
- pretyping/evarutil.cmx pretyping/evarconv.cmx kernel/environ.cmx \
- kernel/declarations.cmx pretyping/coercion.cmx kernel/closure.cmx \
- contrib/subtac/subtac_cases.cmi
+ pretyping/reductionops.cmx pretyping/rawterm.cmx \
+ pretyping/pretype_errors.cmx lib/pp.cmx kernel/names.cmx \
+ library/nameops.cmx pretyping/inductiveops.cmx kernel/inductive.cmx \
+ library/global.cmx pretyping/evd.cmx pretyping/evarutil.cmx \
+ pretyping/evarconv.cmx kernel/environ.cmx kernel/declarations.cmx \
+ pretyping/coercion.cmx kernel/closure.cmx contrib/subtac/subtac_cases.cmi
contrib/subtac/subtac_coercion.cmo: lib/util.cmi pretyping/typing.cmi \
kernel/typeops.cmi pretyping/termops.cmi kernel/term.cmi \
contrib/subtac/subtac_utils.cmi contrib/subtac/subtac_errors.cmi \
@@ -3903,8 +3903,8 @@ contrib/subtac/subtac_pretyping.cmo: toplevel/vernacexpr.cmo lib/util.cmi \
library/libnames.cmi library/global.cmi pretyping/evd.cmi \
pretyping/evarutil.cmi pretyping/evarconv.cmi contrib/subtac/eterm.cmi \
kernel/environ.cmi lib/dyn.cmi interp/coqlib.cmi \
- contrib/subtac/context.cmi interp/constrintern.cmi pretyping/classops.cmi \
- contrib/subtac/subtac_pretyping.cmi
+ contrib/subtac/context.cmi interp/constrintern.cmi toplevel/command.cmi \
+ pretyping/classops.cmi contrib/subtac/subtac_pretyping.cmi
contrib/subtac/subtac_pretyping.cmx: toplevel/vernacexpr.cmx lib/util.cmx \
kernel/typeops.cmx kernel/type_errors.cmx interp/topconstr.cmx \
pretyping/termops.cmx kernel/term.cmx contrib/subtac/subtac_utils.cmx \
@@ -3917,8 +3917,8 @@ contrib/subtac/subtac_pretyping.cmx: toplevel/vernacexpr.cmx lib/util.cmx \
library/libnames.cmx library/global.cmx pretyping/evd.cmx \
pretyping/evarutil.cmx pretyping/evarconv.cmx contrib/subtac/eterm.cmx \
kernel/environ.cmx lib/dyn.cmx interp/coqlib.cmx \
- contrib/subtac/context.cmx interp/constrintern.cmx pretyping/classops.cmx \
- contrib/subtac/subtac_pretyping.cmi
+ contrib/subtac/context.cmx interp/constrintern.cmx toplevel/command.cmx \
+ pretyping/classops.cmx contrib/subtac/subtac_pretyping.cmi
contrib/subtac/subtac_utils.cmo: lib/util.cmi interp/topconstr.cmi \
pretyping/termops.cmi kernel/term.cmi tactics/tactics.cmi \
tactics/tacticals.cmi proofs/tacexpr.cmo kernel/reduction.cmi \
@@ -4194,39 +4194,13 @@ tools/coq_makefile.cmx:
tools/coq-tex.cmo:
tools/coq-tex.cmx:
coq_fix_code.o: kernel/byterun/coq_fix_code.c \
- /usr/lib/ocaml/3.09.2/caml/config.h \
- /usr/lib/ocaml/3.09.2/caml/compatibility.h \
- /usr/lib/ocaml/3.09.2/caml/misc.h /usr/lib/ocaml/3.09.2/caml/config.h \
- /usr/lib/ocaml/3.09.2/caml/mlvalues.h /usr/lib/ocaml/3.09.2/caml/misc.h \
- /usr/lib/ocaml/3.09.2/caml/fail.h /usr/lib/ocaml/3.09.2/caml/mlvalues.h \
- /usr/lib/ocaml/3.09.2/caml/memory.h kernel/byterun/coq_instruct.h \
- kernel/byterun/coq_fix_code.h
+ kernel/byterun/coq_instruct.h kernel/byterun/coq_fix_code.h
coq_interp.o: kernel/byterun/coq_interp.c kernel/byterun/coq_gc.h \
- /usr/lib/ocaml/3.09.2/caml/mlvalues.h \
- /usr/lib/ocaml/3.09.2/caml/compatibility.h \
- /usr/lib/ocaml/3.09.2/caml/config.h /usr/lib/ocaml/3.09.2/caml/misc.h \
- /usr/lib/ocaml/3.09.2/caml/alloc.h \
- /usr/lib/ocaml/3.09.2/caml/mlvalues.h kernel/byterun/coq_instruct.h \
- kernel/byterun/coq_fix_code.h kernel/byterun/coq_memory.h \
- /usr/lib/ocaml/3.09.2/caml/config.h /usr/lib/ocaml/3.09.2/caml/fail.h \
- /usr/lib/ocaml/3.09.2/caml/misc.h /usr/lib/ocaml/3.09.2/caml/memory.h \
- kernel/byterun/coq_values.h kernel/byterun/coq_jumptbl.h
+ kernel/byterun/coq_instruct.h kernel/byterun/coq_fix_code.h \
+ kernel/byterun/coq_memory.h kernel/byterun/coq_values.h
coq_memory.o: kernel/byterun/coq_memory.c kernel/byterun/coq_gc.h \
- /usr/lib/ocaml/3.09.2/caml/mlvalues.h \
- /usr/lib/ocaml/3.09.2/caml/compatibility.h \
- /usr/lib/ocaml/3.09.2/caml/config.h /usr/lib/ocaml/3.09.2/caml/misc.h \
- /usr/lib/ocaml/3.09.2/caml/alloc.h \
- /usr/lib/ocaml/3.09.2/caml/mlvalues.h kernel/byterun/coq_instruct.h \
- kernel/byterun/coq_fix_code.h kernel/byterun/coq_memory.h \
- /usr/lib/ocaml/3.09.2/caml/config.h /usr/lib/ocaml/3.09.2/caml/fail.h \
- /usr/lib/ocaml/3.09.2/caml/misc.h /usr/lib/ocaml/3.09.2/caml/memory.h \
- kernel/byterun/coq_interp.h
+ kernel/byterun/coq_instruct.h kernel/byterun/coq_fix_code.h \
+ kernel/byterun/coq_memory.h kernel/byterun/coq_interp.h
coq_values.o: kernel/byterun/coq_values.c kernel/byterun/coq_fix_code.h \
- /usr/lib/ocaml/3.09.2/caml/mlvalues.h \
- /usr/lib/ocaml/3.09.2/caml/compatibility.h \
- /usr/lib/ocaml/3.09.2/caml/config.h /usr/lib/ocaml/3.09.2/caml/misc.h \
kernel/byterun/coq_instruct.h kernel/byterun/coq_memory.h \
- /usr/lib/ocaml/3.09.2/caml/config.h /usr/lib/ocaml/3.09.2/caml/fail.h \
- /usr/lib/ocaml/3.09.2/caml/mlvalues.h /usr/lib/ocaml/3.09.2/caml/misc.h \
- /usr/lib/ocaml/3.09.2/caml/memory.h kernel/byterun/coq_values.h \
- /usr/lib/ocaml/3.09.2/caml/alloc.h
+ kernel/byterun/coq_values.h
diff --git a/Makefile b/Makefile
index 77ea852576..0d8c825bca 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,10 @@ help:
# build and install the three subsystems: coq, coqide, pcoq
-world: revision coq coqide pcoq
+world: .depend .depend.coq
+ $(MAKE) worldnodep
+
+worldnodep: revision coq coqide pcoq
install: install-coq install-coqide install-pcoq
#install-manpages: install-coq-manpages install-pcoq-manpages
@@ -1742,9 +1745,14 @@ cleanconfig::
# Dependencies
###########################################################################
+.PHONY: alldepend beforedepend dependcoq dependp4 ml4filesml
+
alldepend: depend dependcoq
-dependcoq:: beforedepend
+dependcoq: beforedepend
+ $(MAKE) .depend.coq
+
+\.depend.coq:
$(COQDEP) -coqlib . -R theories Coq -R contrib Coq $(COQINCLUDES) \
$(ALLFSETS:.vo=.v) $(ALLREALS:.vo=.v) $(ALLVO:.vo=.v) > .depend.coq
@@ -1753,7 +1761,7 @@ dependcoq:: beforedepend
# by making scratchdepend, one gets dependencies OK for .ml files and
# .ml4 files not using fancy parsers. This is sufficient to get beforedepend
# and depend targets successfully built
-scratchdepend:: dependp4
+scratchdepend: dependp4
$(OCAMLDEP) $(DEPFLAGS) */*.mli */*/*.mli */*.ml */*/*.ml > .depend
-$(MAKE) -k -f Makefile.dep $(ML4FILESML)
$(OCAMLDEP) $(DEPFLAGS) */*.mli */*/*.mli */*.ml */*/*.ml > .depend
@@ -1766,7 +1774,10 @@ scratchdepend:: dependp4
ML4FILESML = $(ML4FILES:.ml4=.ml)
# Expresses dependencies of the .ml4 files w.r.t their grammars
-dependp4::
+\.depend.camlp4: $(ML4FILES)
+ $(MAKE) dependp4
+
+dependp4:
rm -f .depend.camlp4
for f in $(ML4FILES); do \
printf "%s" `dirname $$f`/`basename $$f .ml4`".ml: " >> .depend.camlp4; \
@@ -1774,9 +1785,12 @@ dependp4::
done
# Produce the .ml files using Makefile.dep
-ml4filesml:: .depend.camlp4
+ml4filesml: .depend.camlp4
$(MAKE) -f Makefile.dep $(ML4FILESML)
+\.depend: */*.mli */*/*.mli */*.ml */*/*.ml $(ML4FILES) kernel/byterun/*.c
+ $(MAKE) depend
+
depend: beforedepend dependp4 ml4filesml
# 1. We express dependencies of the .ml files w.r.t their grammars
# 2. Then we are able to produce the .ml files using Makefile.dep
@@ -1790,7 +1804,7 @@ depend: beforedepend dependp4 ml4filesml
echo `$(CAMLP4DEPS) $$f` >> .depend; \
done
# 5. We express dependencies of .o files
- $(CC) -MM $(CINCLUDES) kernel/byterun/*.c >> .depend
+ $(CC) -MM kernel/byterun/*.c >> .depend
# 6. Finally, we erase the generated .ml files
rm -f $(ML4FILESML)
# 7. Since .depend contains correct dependencies .depend.devel can be deleted