]> matita.cs.unibo.it Git - helm.git/blob - helm/software/DEVEL/ocaml-http/debian/rules
reorganization continues ...
[helm.git] / helm / software / DEVEL / ocaml-http / debian / rules
1 #!/usr/bin/make -f
2 include /usr/share/cdbs/1/rules/debhelper.mk
3 include /usr/share/cdbs/1/class/makefile.mk
4
5 PKGNAME = libhttp-ocaml-dev
6
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)
13
14 ocamlinit:
15         for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done
16
17 ifeq ($(HAVE_OCAMLOPT),yes)
18 build/$(PKGNAME)::
19         $(MAKE) opt
20 endif