X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2FMakefile;h=15a3a8c2cbbb22a19e98c4d2c0dd2203bfcb6fc1;hb=3ed7d56cf4fab7401f8b400c45b2e35579ba71dd;hp=1e940c3b8c5218aa1e8d5dc8c43d4ad028d398b0;hpb=5d1cece5f42866b34566a0f616aa3b46a77359a3;p=helm.git diff --git a/helm/software/matita/Makefile b/helm/software/matita/Makefile index 1e940c3b8..15a3a8c2c 100644 --- a/helm/software/matita/Makefile +++ b/helm/software/matita/Makefile @@ -41,7 +41,6 @@ MLI = \ matitaScript.mli \ matitaMathView.mli \ matitaGui.mli \ - matitaAutoGui.cmo \ $(NULL) CMLI = \ matitaTypes.mli \ @@ -62,7 +61,7 @@ MAINCMLI = \ gragrep.mli \ $(NULL) # objects for matita (GTK GUI) -ML = buildTimeConf.ml matitaGeneratedGui.ml $(MLI:%.mli=%.ml) +ML = buildTimeConf.ml matitaGeneratedGui.ml matitaAutoGui.ml $(MLI:%.mli=%.ml) # objects for matitac (batch compiler) CML = buildTimeConf.ml $(CMLI:%.mli=%.ml) MAINCML = $(MAINCMLI:%.mli=%.ml) @@ -400,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): $(TO_DEPEND_ON) +$(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 $<"