From: Stefano Zacchiroli Date: Wed, 13 Jun 2007 15:43:20 +0000 (+0000) Subject: moved the building of the ocaml source tarball before ./configure to ensure the tarba... X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~585^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ad8870494e969f2e48be4988ce8c8960ae047a41;p=ocaml.git moved the building of the ocaml source tarball before ./configure to ensure the tarball will not contain any build detritus --- diff --git a/debian/rules b/debian/rules index aa75b87e..cc0dfa57 100755 --- a/debian/rules +++ b/debian/rules @@ -52,7 +52,15 @@ abi-sed-clean: debian/control: sed -e 's/#OcamlNativeArchs#/$(NATIVE_ARCHS)/g' debian/control.in > $@ -config-stamp: configure abi-sed +pre-config: debian/$(DISTDIR).tar.bz2 +debian/$(DISTDIR).tar.bz2: + ln -fs . $(DISTDIR) # beware of the symlink recursion! + tar --anchored -chjf debian/$(DISTDIR).tar.bz2 \ + --exclude=$(DISTDIR)/$(DISTDIR) \ + --exclude-from=debian/ocaml-source.exclude \ + $(DISTDIR)/ + +config-stamp: configure pre-config patch-stamp abi-sed dh_testdir # Add here commands to configure the package. ./configure --with-pthread -prefix /usr \ @@ -79,7 +87,7 @@ patch-stamp: abi-sed build: build-arch build-indep build-arch: build-arch-stamp -build-arch-stamp: patch-stamp config-stamp +build-arch-stamp: config-stamp # Add here commands to compile the arch part of the package. if test ! -d boot.debian; then \ @@ -102,13 +110,8 @@ endif touch build-arch-stamp build-indep: build-indep-stamp config-stamp -build-indep-stamp: patch-stamp +build-indep-stamp: # create ocaml source tarball - ln -fs . $(DISTDIR) # beware of the symlink recursion! - tar --anchored -chjf debian/$(DISTDIR).tar.bz2 \ - --exclude=$(DISTDIR)/$(DISTDIR) \ - --exclude-from=debian/ocaml-source.exclude \ - $(DISTDIR)/ touch $@ clean: abi-sed unpatch