REQUIRES = helm-urimanager helm-cic_textual_parser helm-cic_proof_checking helm-mathql helm-mathql_interpreter
PREDICATES =
OCAMLOPTIONS = -I .. -package "$(REQUIRES)" -predicates "$(PREDICATES)"
+OCAMLDEPOPTIONS = $(shell ocamlfind query -recursive -predicates "$(PREDICATES)" -i-format $(REQUIRES))
OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
OCAMLDEP = ocamldep -I .. -I ../../ocaml/mathql_interpreter -I ../../ocaml/mathql
TOPLEVELOBJS = ../mQueryLevels.cmo ../mQueryGenerator.cmo topLevel.cmo
depend:
- $(OCAMLDEP) $(DEPOBJS) > .depend
+ $(OCAMLDEP) $(OCAMLDEPOPTIONS) $(DEPOBJS) > .depend
topLevel: $(TOPLEVELOBJS) $(LIBRARIES)
$(OCAMLC) -linkpkg -o topLevel $(TOPLEVELOBJS)
.PHONY: install uninstall clean
-include .depend
+ifneq ($(MAKECMDGOALS), depend)
+ include .depend
+endif