-REQUIRES = mysql helm-metadata
-INTERFACE_FILES =
-IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
-EXTRA_OBJECTS_TO_INSTALL =
-EXTRA_OBJECTS_TO_CLEAN = \
- extractor extractor.opt
+all: extractor extractor_manager
+ @echo -n
+opt: extractor.opt extractor_manager.opt
+ @echo -n
-all: extractor
-opt: extractor.opt
+clean:
+ rm -f *.cm[ixo] *.[ao] extractor extractor.opt *.err *.out extractor_manager extractor_manager.opt
extractor: extractor.ml
- $(OCAMLFIND) ocamlc \
+ @echo " OCAMLC $<"
+ @$(OCAMLFIND) ocamlc \
-thread -package mysql,helm-metadata -linkpkg -o $@ $<
extractor.opt: extractor.ml
- $(OCAMLFIND) ocamlopt \
+ @echo " OCAMLOPT $<"
+ @$(OCAMLFIND) ocamlopt \
-thread -package mysql,helm-metadata -linkpkg -o $@ $<
-include ../../Makefile.common
+extractor_manager: extractor_manager.ml
+ @echo " OCAMLC $<"
+ @$(OCAMLFIND) ocamlc \
+ -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+
+extractor_manager.opt: extractor_manager.ml
+ @echo " OCAMLOPT $<"
+ @$(OCAMLFIND) ocamlopt \
+ -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+
+export: extractor.opt extractor_manager.opt
+ nice -n 20 \
+ time \
+ ./extractor_manager.opt 1>export.out 2>export.err
+
include .depend
+include ../../../Makefile.defs