X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FMakefile;h=c0e31d64315558d6709e900a60e58f7429f9aed7;hb=ac783aa7646c36a2c6db08ac8f21f1ec99cd55ee;hp=5edaeee643827857b654eb2f0014ece759f7d4f2;hpb=9c3ceab3da5ebe2271d9d6be43e6e23c190c2786;p=helm.git diff --git a/matita/Makefile b/matita/Makefile index 5edaeee64..c0e31d643 100644 --- a/matita/Makefile +++ b/matita/Makefile @@ -119,6 +119,8 @@ links: linkonly: $(H)echo " OCAMLC matita.ml" $(H)$(OCAMLC) $(PKGS) -linkpkg -o matita $(CMOS) matita.ml + $(H)echo " OCAMLC matitac.ml" + $(H)$(OCAMLC) $(CPKGS) -linkpkg -o matitac $(CCMOS) $(MAINCMOS) matitac.ml .PHONY: linkonly matita: matita.ml $(LIB_DEPS) $(CMOS) $(H)echo " OCAMLC $<" @@ -199,11 +201,15 @@ distclean: clean $(H)rm -rf .matita TEST_DIRS = \ + legacy \ library \ tests \ + dama \ + contribs/CoRN \ + contribs/RELATIONAL \ + contribs/LAMBDA-TYPES \ + contribs/PREDICATIVE-TOPOLOGY \ $(NULL) -# contribs/LAMBDA-TYPES \ -# contribs/PREDICATIVE-TOPOLOGY \ .PHONY: tests tests.opt cleantests cleantests.opt tests: $(foreach d,$(TEST_DIRS),$(d)-test) @@ -379,12 +385,18 @@ depend: $(H)$(OCAMLDEP) *.ml *.mli > .depend depend.opt: $(H)echo " OCAMLDEP -native" - $(H)$(OCAMLDEP) -native *.ml *.mli > .depend + $(H)$(OCAMLDEP) -native *.ml *.mli > .depend.opt -ifneq ($(MAKECMDGOALS), depend) - ifneq ($(MAKECMDGOALS), depend.opt) - include .depend - endif +ifeq ($(MAKECMDGOALS),) + include .depend +endif + +ifeq ($(MAKECMDGOALS), all) + include .depend +endif + +ifeq ($(MAKECMDGOALS), opt) + include .depend.opt endif %.cmi: %.mli @@ -403,6 +415,11 @@ endif $(CMOS): $(LIB_DEPS) $(CMOS:%.cmo=%.cmx): $(LIBX_DEPS) +deps.ps: deps.dot + dot -Tps -o $@ $< +deps.dot: .depend + ./dep2dot.rb < $< | tred > $@ + ifeq ($(MAKECMDGOALS),all) $(CMOS:%.cmo=%.cmi): $(LIB_DEPS) endif