]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/metadata/table_creator/Makefile
added DROP statements to sqlStatements
[helm.git] / helm / ocaml / metadata / table_creator / Makefile
index 8b08e6d51015d4c365e78da3e226a9f507cc1f11..3368e52293ea318438b926063700b5d838c9cae3 100644 (file)
@@ -3,18 +3,25 @@ REQUIRES = mysql helm-metadata
 INTERFACE_FILES = 
 IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml) 
 EXTRA_OBJECTS_TO_INSTALL =
-EXTRA_OBJECTS_TO_CLEAN =table_creator table_creator.opt
+EXTRA_OBJECTS_TO_CLEAN = \
+       table_creator table_creator.opt table_destructor table_destructor.opt
 
-all: table_creator
-opt: table_creator.opt
+all: table_creator table_destructor
+opt: table_creator.opt table_destructor.opt
 
 table_creator: table_creator.ml
        $(OCAMLFIND) ocamlc \
                -thread -package mysql,helm-metadata -linkpkg -o $@ $<
 
+table_destructor: table_creator
+       ln -f $< $@
+
 table_creator.opt: table_creator.ml
        $(OCAMLFIND) ocamlopt \
                -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+
+table_destructor.opt: table_creator.opt
+       ln  -f $< $@
                
 include ../../Makefile.common
 include .depend