]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/Makefile.defs
- set ocamldoc to look in netstring directory so that it's able to find
[helm.git] / helm / DEVEL / ocaml-http / Makefile.defs
index e94f344ecbc7b2c2b6f9cadffdab5c5120adb828..642a7acb5fbd5f7cd42b488695067a80dcad3e74 100644 (file)
@@ -1,18 +1,20 @@
 PKGNAME = http
-DISTVERSION = 0.0.5
+DISTVERSION = $(shell dpkg-parsechangelog | egrep '^Version: ' | sed 's/^Version: //')
 
-DEBUG_OPTS =
-REQUIRES = unix pcre netstring threads
-COMMON_OPTS = $(DEBUG_OPTS) -pp camlp4o -package "$(REQUIRES)"
+DEBUG_FLAGS =
+REQUIRES = unix pcre netstring
+COMMON_FLAGS = $(DEBUG_FLAGS) -pp camlp4o -package "$(REQUIRES)"
+THREADS_FLAGS = -package threads -thread
 OCAMLFIND = ocamlfind
-OCAMLC = $(OCAMLFIND) ocamlc $(COMMON_OPTS) -thread
-OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMON_OPTS) -thread
-OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMON_OPTS)
-OCAMLDOC = ocamldoc
+OCAMLC = $(OCAMLFIND) ocamlc $(COMMON_FLAGS)
+OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMON_FLAGS)
+OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMON_FLAGS)
+OCAMLDOC := ocamldoc -I $(shell $(OCAMLFIND) query netstring)
 
 DISTNAME = ocaml-http
 DISTDIR = $(DISTNAME)-$(DISTVERSION)
 EXTRA_DIST =   \
-       INSTALL LICENSE README META.in Makefile Makefile.defs .depend tophttp doc
+       INSTALL LICENSE README META.in Makefile Makefile.defs Makefile.overrides        \
+       .depend tophttp doc