X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2FDEVEL%2Focaml-http%2Fdebian%2Frules;h=b8493ead0adf20924472b18f33f25283e007b5c9;hb=847782c57c47428a8948f73888b484f559504edc;hp=bde0727440b5c0279bbaa2a28d9a4787cf55cf84;hpb=d43522a6d38fcb9081a3f0352088377bc0555231;p=helm.git diff --git a/helm/software/DEVEL/ocaml-http/debian/rules b/helm/software/DEVEL/ocaml-http/debian/rules index bde072744..b8493ead0 100755 --- a/helm/software/DEVEL/ocaml-http/debian/rules +++ b/helm/software/DEVEL/ocaml-http/debian/rules @@ -6,12 +6,16 @@ PKGNAME = libhttp-ocaml-dev OCAMLABI := $(shell ocamlc -version) OCAMLLIBDIR := $(shell ocamlc -where) -OFILES := $(patsubst %.in,%,$(shell ls debian/*.in)) +OFILES_ALL := $(patsubst %.in,%,$(shell ls debian/*.in)) +OFILES := $(filter-out debian/rules, $(OFILES_ALL)) HAVE_OCAMLOPT := $(shell test -x /usr/bin/ocamlopt && echo "yes") DEB_DH_GENCONTROL_ARGS = -- -VF:OCamlABI="$(OCAMLABI)" DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAMLLIBDIR) ocamlinit: + for f in $(OFILES_ALL); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done + +makebuilddir/$(PKGNAME):: for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done ifeq ($(HAVE_OCAMLOPT),yes)