############################################################################# ## v # The Coq Proof Assistant ## ## .depend #################### # # # Special targets. # # # #################### .PHONY: all opt byte archclean clean install depend html %.cmi: %.mli $(CAMLC) $(ZDEBUG) $(ZFLAGS) $< %.cmo: %.ml $(CAMLC) $(ZDEBUG) $(ZFLAGS) $(PP) $< %.cmx: %.ml $(CAMLOPTC) $(ZDEBUG) $(ZFLAGS) $(PP) $< %.cmxs: %.ml $(CAMLOPTLINK) $(ZDEBUG) $(ZFLAGS) -shared -o $@ $(PP) $< %.cmo: %.ml4 $(CAMLC) $(ZDEBUG) $(ZFLAGS) $(PP) -impl $< %.cmx: %.ml4 $(CAMLOPTC) $(ZDEBUG) $(ZFLAGS) $(PP) -impl $< %.cmxs: %.ml4 $(CAMLOPTLINK) $(ZDEBUG) $(ZFLAGS) -shared -o $@ $(PP) -impl $< %.ml.d: %.ml $(CAMLBIN)ocamldep -slash $(OCAMLLIBS) $(PP) "$<" > "$@" %.vo %.glob: %.v $(COQC) $(COQDEBUG) $(COQFLAGS) $* %.vi: %.v $(COQC) -i $(COQDEBUG) $(COQFLAGS) $* %.g: %.v $(GALLINA) $< %.tex: %.v $(COQDOC) -latex $< -o $@ %.html: %.v %.glob $(COQDOC) -html $< -o $@ %.g.tex: %.v $(COQDOC) -latex -g $< -o $@ %.g.html: %.v %.glob $(COQDOC) -html -g $< -o $@ %.v.d: %.v $(COQDEP) -slash $(COQLIBS) "$<" > "$@" || ( RV=$$?; rm -f "$@"; exit $${RV} ) byte: $(MAKE) all "OPT:=-byte" opt: $(MAKE) all "OPT:=-opt" install: mkdir -p $(COQLIB)/user-contrib (for i in $(VOFILES); do \ install -d `dirname $(COQLIB)/user-contrib/AAC_tactics/$$i`; \ install $$i $(COQLIB)/user-contrib/AAC_tactics/$$i; \ done) (for i in $(CMOFILES); do \ install -d `dirname $(COQLIB)/user-contrib/AAC_tactics/$$i`; \ install $$i $(COQLIB)/user-contrib/AAC_tactics/$$i; \ done) (for i in $(CMIFILES); do \ install -d `dirname $(COQLIB)/user-contrib/AAC_tactics/$$i`; \ install $$i $(COQLIB)/user-contrib/AAC_tactics/$$i; \ done) (for i in $(CMXSFILES); do \ install -d `dirname $(COQLIB)/user-contrib/AAC_tactics/$$i`; \ install $$i $(COQLIB)/user-contrib/AAC_tactics/$$i; \ done) clean: rm -f $(CMOFILES) $(CMIFILES) $(CMXFILES) $(CMXSFILES) $(OFILES) $(VOFILES) $(VIFILES) $(GFILES) $(MLFILES:.ml=.cmo) $(MLFILES:.ml=.cmx) *~ rm -f all.ps all-gal.ps all.pdf all-gal.pdf all.glob $(VFILES:.v=.glob) $(HTMLFILES) $(GHTMLFILES) $(VFILES:.v=.tex) $(VFILES:.v=.g.tex) $(VFILES:.v=.v.d) rm -f $(CMOFILES) $(MLFILES:.ml=.cmi) $(MLFILES:.ml=.ml.d) $(MLFILES:.ml=.cmx) $(MLFILES:.ml=.o) - rm -rf html - rm -rf doc - rm -f aac_tactics.cmxs - rm -f aac_tactics.cmxa - rm -f aac_tactics.cma - rm -f .depend archclean: rm -f *.cmx *.o printenv: @echo CAMLC = $(CAMLC) @echo CAMLOPTC = $(CAMLOPTC) @echo CAMLP4LIB = $(CAMLP4LIB) .dummy: magic.txt mv -f Makefile Makefile.bak $(COQBIN)coq_makefile -f magic.txt -o Makefile -include $(VFILES:.v=.v.d) .SECONDARY: $(VFILES:.v=.v.d) -include $(MLFILES:.ml=.ml.d) .SECONDARY: $(MLFILES:.ml=.ml.d) # WARNING # # This Makefile has been automagically generated # Edit at your own risks ! # # END OF WARNING # override inadequate coq_makefile auto-regeneration Makefile: make_makefile magic.txt files.txt ./make_makefile # We want to keep the proofs in Caveats and the Tutorial world: $(VOFILES) doc - mkdir -p html $(COQDOC) -toc -utf8 -html -g $(COQDOCLIBS) -d html $(VFILES) $(COQDOC) --no-index --no-externals -s -utf8 -html $(COQDOCLIBS) -d html Tutorial.v $(COQDOC) --no-index --no-externals -s -utf8 -html $(COQDOCLIBS) -d html Caveats.v # additional dependencies for AAC (since aac_tactics.cmxs/cma are not # around the first time we run make, coqdep issues a warning and # ignores this dependency) # (one can safely select one of theses dependencies according to # coq' compilation mode--bytecode or native) AAC.vo: aac_tactics.cmxa aac_tactics.cmxs aac_tactics.cma # .depend contains dependencies for .mli files -include .depend .SECONDARY: .depend