X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fmatita%2FMakefile.in;h=8e9f3b9ce906827b8902a8d3c1824556da044d08;hb=bb7506ae65de577d2e7c283c61ce80dc4fa4daa3;hp=f584ec84010aac92c7e85b9f88732f162439779b;hpb=55e14b104259e41c4b678d35b57f75ce4dcd49c3;p=helm.git diff --git a/helm/matita/Makefile.in b/helm/matita/Makefile.in index f584ec840..8e9f3b9ce 100644 --- a/helm/matita/Makefile.in +++ b/helm/matita/Makefile.in @@ -41,14 +41,14 @@ CCMOS = \ matitaDisambiguator.cmo \ matitaEngine.cmo -LIB_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(REQUIRES)) all: matita matitac cicbrowser ifeq ($(HAVE_OCAMLOPT),yes) CMXS = $(patsubst %.cmo,%.cmx,$(CMOS)) CCMXS = $(patsubst %.cmo,%.cmx,$(CCMOS)) -LIBX_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(REQUIRES)) +LIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(REQUIRES)) +LIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(REQUIRES)) opt: matita.opt matitac.opt cicbrowser.opt else opt: @@ -106,3 +106,15 @@ include .depend .PHONY: all opt clean distclean depend +$(CMOS): $(LIB_DEPS) +$(CMOS:%.cmo=%.cmx): $(LIBX_DEPS) + +ifeq ($(MAKECMDGOALS),all) + $(CMOS:%.cmo=%.cmi): $(LIB_DEPS) +endif +ifeq ($(MAKECMDGOALS),) + $(CMOS:%.cmo=%.cmi): $(LIB_DEPS) +endif +ifeq ($(MAKECMDGOALS),opt) + $(CMOS:%.cmo=%.cmi): $(LIBX_DEPS) +endif