Section: devel
Priority: optional
Maintainer: Stefano Zacchiroli <zack@debian.org>
-Build-Depends: debhelper (>> 4.0.0), ocaml-3.06, ocaml-findlib, libpcre-ocaml-dev-4.30.0, libocamlnet-ocaml-dev-0.94
+Build-Depends: debhelper (>> 4.0.0), ocaml-3.06-1, ocaml-findlib, libpcre-ocaml-dev-4.30.0, libocamlnet-ocaml-dev-0.94
Standards-Version: 3.5.8
Package: libhttp-ocaml-dev
Architecture: any
-Depends: ocaml-3.06, libpcre-ocaml-dev-4.30.0, libocamlnet-ocaml-dev-0.94
+Depends: ocaml-3.06-1, libpcre-ocaml-dev-4.30.0, libocamlnet-ocaml-dev-0.94
Provides: libhttp-ocaml-dev-0.0.6
Description: OCaml module to build simple HTTP servers
OCaml module to build simple HTTP server, largely inspired to Perl's
#export DH_VERBOSE=1
export DH_COMPAT=4
-TARGETDIR=$(CURDIR)/debian/libhttp-ocaml-dev
+TARGETDIR = $(CURDIR)/debian/libhttp-ocaml-dev
+OCAML_LIB_DIR = $(shell ocamlc -where)
build: build-stamp
build-stamp:
dh_testroot
dh_clean -k
dh_installdirs
- $(MAKE) install DESTDIR=$(TARGETDIR)/usr/lib/ocaml
+ $(MAKE) install DESTDIR=$(TARGETDIR)$(OCAML_LIB_DIR)
$(MAKE) doc
binary-arch: build install