X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2FDEVEL%2Focaml-http%2Fdebian%2Frules;h=b6652614facd9e71352ede10407cebdf7bde1268;hb=592dca18b8f2bd19c3020bc1bb1f0270188e347a;hp=21e48854b779b5dd0bf4365916fc276c2d79e4e5;hpb=2fc9aa020cc8b357e1fad754558a633c2a51dcbf;p=helm.git diff --git a/helm/software/DEVEL/ocaml-http/debian/rules b/helm/software/DEVEL/ocaml-http/debian/rules index 21e48854b..b6652614f 100755 --- a/helm/software/DEVEL/ocaml-http/debian/rules +++ b/helm/software/DEVEL/ocaml-http/debian/rules @@ -1,20 +1,11 @@ #!/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) +DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAML_STDLIB_DIR) ifeq ($(HAVE_OCAMLOPT),yes) build/$(PKGNAME)::