From: Sven Luther Date: Wed, 2 Nov 2005 12:00:05 +0000 (+0000) Subject: Let's do the abiname sed before clean too. X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~699 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c7c27286e566415d040ef95c37df48dbf6d62f5;p=ocaml.git Let's do the abiname sed before clean too. --- diff --git a/debian/rules b/debian/rules index 17973cff..0fb9db0d 100755 --- a/debian/rules +++ b/debian/rules @@ -37,10 +37,12 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif -config-stamp: configure +abi-sed: for t in `find . -name \*.in`; do \ sed -e 's%#OcamlABI#%$(OCAMLABI)%' -e 's%#OcamlMAJOR#%$(OCAMLMAJOR)%' $$t >$${t%.in}; \ done + +config-stamp: configure abi-sed dh_testdir # Add here commands to configure the package. ./configure --with-pthread -prefix /usr \ @@ -89,7 +91,7 @@ build-indep-stamp: patch-stamp config-stamp # Add here commands to compile the indep part of the package. #$(MAKE) doc -clean: unpatch +clean: abi-sed unpatch dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp config-stamp