]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/metadata/extractor/Makefile
added extractor_manager
[helm.git] / helm / ocaml / metadata / extractor / Makefile
index 1275aaab8723d10aef6089f4fae79fc673f82e05..0eccebee4f825df96ce06e71d49049de4e6f5649 100644 (file)
@@ -4,10 +4,10 @@ INTERFACE_FILES =
 IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml) 
 EXTRA_OBJECTS_TO_INSTALL =
 EXTRA_OBJECTS_TO_CLEAN = \
-       extractor extractor.opt 
+       extractor extractor.opt *.err *.out extractor_manager extractor_manager.opt
 
-all: extractor
-opt: extractor.opt
+all: extractor extractor_manager 
+opt: extractor.opt extractor_manager.opt
 
 extractor: extractor.ml
        $(OCAMLFIND) ocamlc \
@@ -17,5 +17,19 @@ extractor.opt: extractor.ml
        $(OCAMLFIND) ocamlopt \
                -thread -package mysql,helm-metadata -linkpkg -o $@ $<
 
+extractor_manager: extractor_manager.ml
+       $(OCAMLFIND) ocamlc \
+               -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+
+extractor_manager.opt: extractor_manager.ml
+       $(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 ../../Makefile.common
 include .depend