Let's do the abiname sed before clean too.
authorSven Luther <luther@debian.org>
Wed, 2 Nov 2005 12:00:05 +0000 (12:00 +0000)
committerSven Luther <luther@debian.org>
Wed, 2 Nov 2005 12:00:05 +0000 (12:00 +0000)
debian/rules

index 17973cff45f677a9254be6cf20f00ef297fc703d..0fb9db0dac55646ab32ef4dcd28151223aa80bcb 100755 (executable)
@@ -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