X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fmatita%2FMakefile.in;h=e7f4f677b5dc06f8ef56de8ccbd3bf8d0e9ae5b5;hb=a785a3526d4dcbb6c5810ed4fb943132c9ff2d45;hp=7b38057517908102ef3728462240cf90fb764e5f;hpb=1d431843f49b3658593c8cc918b53a43479a6486;p=helm.git diff --git a/helm/matita/Makefile.in b/helm/matita/Makefile.in index 7b3805751..e7f4f677b 100644 --- a/helm/matita/Makefile.in +++ b/helm/matita/Makefile.in @@ -25,21 +25,24 @@ CMOS = \ matitaDisambiguator.cmo \ matitaMathView.cmo \ matitaInterpreter.cmo -CMXS = $(patsubst %.cmo,%.cmx,$(CMOS)) + +LIB_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(REQUIRES)) all: matita ifeq ($(HAVE_OCAMLOPT),yes) +CMXS = $(patsubst %.cmo,%.cmx,$(CMOS)) +LIBX_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(REQUIRES)) opt: matita.opt else opt: @echo "Native code compilation is disabled" endif -matita: $(CMOS) matita.ml - $(OCAMLC) -linkpkg -o $@ $^ -matita.opt: $(CMXS) matita.ml - $(OCAMLOPT) -linkpkg -o $@ $^ +matita: $(LIB_DEPS) $(CMOS) matita.ml + $(OCAMLC) -linkpkg -o $@ $(CMOS) matita.ml +matita.opt: $(LIBX_DEPS) $(CMXS) matita.ml + $(OCAMLOPT) -linkpkg -o $@ $(CMXS) matita.ml matitaGeneratedGui.ml matitaGeneratedGui.mli: matita.glade $(LABLGLADECC) $< > matitaGeneratedGui.ml