]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/Makefile.defs
ocaml 3.09 transition
[helm.git] / helm / DEVEL / ocaml-http / Makefile.defs
index fcd612e5fee9ec939ceb4a12736be9ece65d0854..4d9f7c5ca2116d275e6d309f62dfd88a9f579b3e 100644 (file)
@@ -1,15 +1,24 @@
 PKGNAME = http
-DISTVERSION = 0.0.4
+DISTVERSION = $(shell dpkg-parsechangelog | egrep '^Version: ' | sed 's/^Version: //' | sed 's/-.*//')
 
-DEBUG_OPTS =
-COMMON_OPTS = $(DEBUG_OPTS) -pp camlp4o -thread -package "unix,pcre,netstring,threads"
+DEBUG_FLAGS =
+REQUIRES = unix str pcre netstring
+COMMON_FLAGS = $(DEBUG_FLAGS) -pp camlp4o -package "$(REQUIRES)"
+THREADS_FLAGS = -package threads -thread
 OCAMLFIND = ocamlfind
-OCAMLC = $(OCAMLFIND) ocamlc $(COMMON_OPTS)
-OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMON_OPTS)
-OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMON_OPTS)
+OCAMLC = $(OCAMLFIND) ocamlc $(COMMON_FLAGS)
+OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMON_FLAGS)
+OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMON_FLAGS)
+OCAMLDOC :=                                                    \
+       ocamldoc -stars                                         \
+               $(shell $(OCAMLFIND) query -i-format unix)      \
+               $(shell $(OCAMLFIND) query -i-format pcre)      \
+               $(shell $(OCAMLFIND) query -i-format netstring)
+DOT = dot
 
 DISTNAME = ocaml-http
 DISTDIR = $(DISTNAME)-$(DISTVERSION)
-EXTRA_DIST = INSTALL LICENSE README META.in Makefile Makefile.defs .depend tophttp
-
+EXTRA_DIST =   \
+       INSTALL LICENSE README META.in Makefile Makefile.defs   \
+       .depend