]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/metadata/create_V7_mowgli/touch/Makefile
New version for the new DTD.
[helm.git] / helm / metadata / create_V7_mowgli / touch / Makefile
diff --git a/helm/metadata/create_V7_mowgli/touch/Makefile b/helm/metadata/create_V7_mowgli/touch/Makefile
new file mode 100644 (file)
index 0000000..636a804
--- /dev/null
@@ -0,0 +1,41 @@
+REQUIRES = helm-getter helm-cic str
+PREDICATES =
+OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
+OCAMLDEP = ocamldep
+OCAMLFIND = ocamlfind
+OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
+OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
+
+LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+
+all: touch
+opt: touch.opt
+
+DEPOBJS = touch.ml
+
+TOUCHOBJS = touch.cmo
+
+depend:
+       $(OCAMLDEP) $(DEPOBJS) > .depend
+
+touch: $(TOUCHOBJS) $(LIBRARIES)
+       $(OCAMLC) -linkpkg -o touch $(TOUCHOBJS)
+
+touch.opt: $(TOUCHOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
+       $(OCAMLOPT) -linkpkg -o touch.opt $(TOUCHOBJS:.cmo=.cmx)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx
+.ml.cmo: $(LIBRARIES)
+       $(OCAMLC) -c $<
+.mli.cmi: $(LIBRARIES)
+       $(OCAMLC) -c $<
+.ml.cmx: $(LIBRARIES_OPT)
+       $(OCAMLOPT) -c $<
+
+clean:
+       rm -f *.cm[iox] *.o touch touch.opt
+
+.PHONY: clean
+
+include .depend