]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/Makefile
package dependences calulation fixed
[helm.git] / helm / gTopLevel / Makefile
index 34b0aec80b932069dc7b1b7235cb7a6bbf158e81..bac191eb10cab92b7380d8de407175d4f8fa94c3 100644 (file)
@@ -4,6 +4,7 @@ REQUIRES = lablgtkmathview helm-cic_textual_parser helm-cic_proof_checking \
            helm-mathql_interpreter
 PREDICATES = "gnome,init,glade"
 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
+OCAMLDEPOPTIONS = $(shell ocamlfind query -recursive -predicates "$(PREDICATES)" -i-format $(REQUIRES))
 OCAMLFIND = ocamlfind
 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
@@ -33,7 +34,7 @@ TOPLEVELOBJS = \
         gTopLevel.cmo
 
 depend:
-       $(OCAMLDEP) $(DEPOBJS) > .depend
+       $(OCAMLDEP) $(OCAMLDEPOPTIONS) $(DEPOBJS) > .depend
 
 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
        $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)