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