extractor: extractor.ml
$(H)echo " OCAMLC $<"
$(H)$(OCAMLFIND) ocamlc \
- -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+ -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
extractor.opt: extractor.ml
$(H)echo " OCAMLOPT $<"
$(H)$(OCAMLFIND) ocamlopt \
- -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+ -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
extractor_manager: extractor_manager.ml
$(H)echo " OCAMLC $<"
$(H)$(OCAMLFIND) ocamlc \
- -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+ -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
extractor_manager.opt: extractor_manager.ml
$(H)echo " OCAMLOPT $<"
$(H)$(OCAMLFIND) ocamlopt \
- -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+ -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
export: extractor.opt extractor_manager.opt
nice -n 20 \
$(H)ocamldep extractor.ml extractor_manager.ml > .depend
depend.opt:
$(H)echo " OCAMLDEP -native"
- $(H)ocamldep -native extractor.ml extractor_manager.ml > .depend
+ $(H)ocamldep -native extractor.ml extractor_manager.ml > .depend.opt
+
+ifeq ($(MAKECMDGOALS),)
+ include .depend
+endif
+
+ifeq ($(MAKECMDGOALS), all)
+ include .depend
+endif
+
+ifeq ($(MAKECMDGOALS), opt)
+ include .depend.opt
+endif
-include .depend
include ../../../Makefile.defs