[Pkg-ocaml-maint-commits] r3826 - /trunk/packages/ocaml/branches/ocaml-3.10.0/debian/rules
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Wed Jun 13 15:43:20 UTC 2007
Author: zack
Date: Wed Jun 13 15:43:20 2007
New Revision: 3826
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=3826
Log:
moved the building of the ocaml source tarball before ./configure to ensure the tarball will not contain any build detritus
Modified:
trunk/packages/ocaml/branches/ocaml-3.10.0/debian/rules
Modified: trunk/packages/ocaml/branches/ocaml-3.10.0/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml/branches/ocaml-3.10.0/debian/rules?rev=3826&op=diff
==============================================================================
--- trunk/packages/ocaml/branches/ocaml-3.10.0/debian/rules (original)
+++ trunk/packages/ocaml/branches/ocaml-3.10.0/debian/rules Wed Jun 13 15:43:20 2007
@@ -52,7 +52,15 @@
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 @@
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 @@
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
More information about the Pkg-ocaml-maint-commits
mailing list