X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=DEVEL%2Focaml-http%2Fdebian%2Frules;h=f342cfe2623f92f25a7ce2feb7a15740c09c4d96;hb=6ad533c972e6c9e9db53f38f972e7c0792160f2e;hp=21e48854b779b5dd0bf4365916fc276c2d79e4e5;hpb=528126015932d330c6450d5a97b6c444f3aebd3c;p=helm.git diff --git a/DEVEL/ocaml-http/debian/rules b/DEVEL/ocaml-http/debian/rules index 21e48854b..f342cfe26 100755 --- a/DEVEL/ocaml-http/debian/rules +++ b/DEVEL/ocaml-http/debian/rules @@ -1,22 +1,15 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/class/ocaml.mk PKGNAME = libhttp-ocaml-dev -OCAMLABI := $(shell ocamlc -version) -OCAMLLIBDIR := $(shell ocamlc -where) -OFILES := $(filter-out debian/control,$(patsubst %.in,%,$(wildcard debian/*.in))) -HAVE_OCAMLOPT := $(shell test -x /usr/bin/ocamlopt && echo "yes") -DEB_DH_GENCONTROL_ARGS = -- -VF:OCamlABI="$(OCAMLABI)" - -ocamlinit: - for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done -makebuilddir/$(PKGNAME):: ocamlinit - -DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAMLLIBDIR) - -ifeq ($(HAVE_OCAMLOPT),yes) -build/$(PKGNAME):: - $(MAKE) opt +DEB_MAKE_BUILD_TARGET = all +ifeq ($(OCAML_HAVE_OCAMLOPT),yes) +DEB_MAKE_BUILD_TARGET += opt endif +build/$(PKGNAME):: + $(MAKE) doc + +DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAML_STDLIB_DIR)