X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FMakefile;h=1c11060d47be6837e0367c73696d959b16a41586;hb=11c50230046ab06ad542aa2f441d7525edbb678d;hp=e13b2d657deb13511e840755b47dcd872af9ced8;hpb=10717eeb347ae366a79ec4abf38f00c2cee1dff3;p=helm.git diff --git a/matita/Makefile b/matita/Makefile index e13b2d657..1c11060d4 100644 --- a/matita/Makefile +++ b/matita/Makefile @@ -31,8 +31,8 @@ MLI = \ matitaTypes.mli \ matitaMisc.mli \ matitamakeLib.mli \ - matitaInit.mli \ matitaExcPp.mli \ + matitaInit.mli \ matitaEngine.mli \ applyTransformation.mli \ matitacLib.mli \ @@ -46,8 +46,8 @@ CMLI = \ matitaTypes.mli \ matitaMisc.mli \ matitamakeLib.mli \ - matitaInit.mli \ matitaExcPp.mli \ + matitaInit.mli \ matitaEngine.mli \ applyTransformation.mli \ matitacLib.mli \ @@ -296,7 +296,7 @@ endif ln -fs matita $(WHERE)/$$p;\ done $(H)cp -a library/ $(WHERE)/ma/standard-library - $(H)cp -a contribs/ $(WHERE)/ma/ + #$(H)cp -a contribs/ $(WHERE)/ma/ $(H)touch install_preliminaries.stamp uninstall: @@ -399,30 +399,40 @@ depend.opt: $(H)$(OCAMLDEP) -native *.ml *.mli > .depend.opt # this should be sligtly better, since should work with 'make all opt' -ifneq (,$(findstring all,$(MAKECMDGOALS))) +MAKECMDGOALS_DELIM=$(addprefix _x_,$(addsuffix _x_,$(MAKECMDGOALS))) +ifneq (,$(findstring _x_all_x_,$(MAKECMDGOALS_DELIM))) # if we 'make all opt' the deps for 'all' should be fine also for opt - # if we 'make opt all' it should not work... + # if we 'make opt all' it should not work... + INCLUDE_MANDATORY=yes TO_INCLUDE+=.depend TO_DEPEND_ON=$(LIB_DEPS) -else ifneq (,$(findstring opt,$(MAKECMDGOALS))) +else ifneq (,$(findstring _x_opt_x_,$(MAKECMDGOALS_DELIM))) + INCLUDE_MANDATORY=yes TO_INCLUDE+=.depend.opt TO_DEPEND_ON=$(LIBX_DEPS) -else ifneq (,$(findstring world,$(MAKECMDGOALS))) +else ifneq (,$(findstring _x_world_x_,$(MAKECMDGOALS_DELIM))) ifeq ($(HAVE_OCAMLOPT),yes) + INCLUDE_MANDATORY=yes TO_INCLUDE+=.depend.opt TO_DEPEND_ON=$(LIBX_DEPS) else + INCLUDE_MANDATORY=yes TO_INCLUDE+=.depend TO_DEPEND_ON=$(LIB_DEPS) endif else TO_INCLUDE+=.depend + INCLUDE_MANDATORY=no TO_DEPEND_ON=$(LIB_DEPS) endif $(MLI:%.mli=%.cmi) $(ML:%.ml=%.cmo) $(ML:%.ml=%.cmx): $(TO_DEPEND_ON) -include $(TO_INCLUDE) +ifeq (no,$(INCLUDE_MANDATORY)) + -include $(TO_INCLUDE) +else + include $(TO_INCLUDE) +endif %.cmi: %.mli $(H)echo " OCAMLC $<"