debian/rules: remove config.{sub,guess} in clean target and copy them
authorgregor herrmann <gregoa@debian.org>
Sat, 24 May 2008 19:04:52 +0000 (19:04 -0000)
committergregor herrmann <gregoa@debian.org>
Sat, 24 May 2008 19:04:52 +0000 (19:04 -0000)
over in configure target as a preparation for source format "3.0 (quilt)";
thanks to Raphaël Hertzog for the bug report (closes: #482726).

debian/changelog
debian/rules

index c2124cbd004b9a23accfe248692a8a329948ec63..689c444ca4233501fb814199621eee4775060151 100644 (file)
@@ -1,3 +1,11 @@
+cdck (0.7.0-2) UNRELEASED; urgency=low
+
+  * debian/rules: remove config.{sub,guess} in clean target and copy them
+    over in configure target as a preparation for source format "3.0 (quilt)";
+    thanks to Raphaël Hertzog for the bug report (closes: #482726).
+
+ -- gregor herrmann <gregoa@debian.org>  Sat, 24 May 2008 20:27:54 +0200
+
 cdck (0.7.0-1) unstable; urgency=low
 
   * New upstream release: adds a warning about misleading error output
 cdck (0.7.0-1) unstable; urgency=low
 
   * New upstream release: adds a warning about misleading error output
index 3f2c92a1a37814eeb8a3906db8fffd25b14a5029..987648e441974bbbc9f78013ef8231b70cfed2cf 100755 (executable)
@@ -27,6 +27,14 @@ endif
 
 config.status: configure
        dh_testdir
 
 config.status: configure
        dh_testdir
+
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+       cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+       cp -f /usr/share/misc/config.guess config.guess
+endif
+
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS=" -Wl,-z,defs"
 
 
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS=" -Wl,-z,defs"
 
 
@@ -39,16 +47,9 @@ build-stamp: config.status $(QUILT_STAMPFN)
 clean: unpatch
        dh_testdir
        dh_testroot
 clean: unpatch
        dh_testdir
        dh_testroot
+       rm -f config.sub config.guess
        rm -f build-stamp install-stamp
        rm -f build-stamp install-stamp
-
        [ ! -f Makefile ] || $(MAKE) distclean
        [ ! -f Makefile ] || $(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-
        dh_clean
 
 install: install-stamp
        dh_clean
 
 install: install-stamp