2 include /usr/share/cdbs/1/rules/debhelper.mk
3 include /usr/share/cdbs/1/class/makefile.mk
5 PKGNAME = libhttp-ocaml-dev
7 OCAMLABI := $(shell ocamlc -version)
8 OCAMLLIBDIR := $(shell ocamlc -where)
9 OFILES := $(patsubst %.in,%,$(shell ls debian/*.in))
10 HAVE_OCAMLOPT := $(shell test -x /usr/bin/ocamlopt && echo "yes")
11 DEB_DH_GENCONTROL_ARGS = -- -VF:OCamlABI="$(OCAMLABI)"
12 DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAMLLIBDIR)
15 for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done
17 ifeq ($(HAVE_OCAMLOPT),yes)