[neon/backports-jammy/libsignon-glib/Neon/unstable] debian: Remove complex rules for autogen.sh and dh_clean in favor of much simpler ones.

Diane Trout null at kde.org
Thu Jun 22 01:30:33 BST 2023


Git commit 2411a6f4cdcffad8ad656f9266b5a32ee7614910 by Diane Trout.
Committed on 12/09/2015 at 04:41.
Pushed by carlosdem into branch 'Neon/unstable'.

Remove complex rules for autogen.sh and dh_clean in favor of much simpler ones.

M  +6    -18   debian/rules

https://invent.kde.org/neon/backports-jammy/libsignon-glib/-/commit/2411a6f4cdcffad8ad656f9266b5a32ee7614910

diff --git a/debian/rules b/debian/rules
index a1705a6..ffef703 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,25 +11,13 @@ export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
 BUILD:=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 %:
-	dh $@ --with autoreconf,autotools-dev,gir
+	dh $@ --with autoreconf,gir
 
-build:
+override_dh_autoreconf:
 	gtkdocize
-	./autogen.sh --build=$(BUILD) \
-                     --prefix=/usr \
-	             --sysconfdir=/etc \
-                     --localstatedir=/etc \
-	             --includedir=/usr/include \
-	             --infodir=/usr/share/info \
-	             --mandir=/usr/share/man 
-	cd $(BUILD); make
-	            
-override_dh_auto_clean:
-	-rm -rf build-aux/  build/ libsignon-glib/.libs/
-	-rm aclocal.m4 m4/gtk-doc.m4 m4/libtool.m4 m4/ltoptions.m4 \
-	    m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4
-	-rm gtk-doc.make INSTALL config.h.in configure \
-	    libsignon-glib/Signon-1.0.typelib
-	find . -name Makefile.in -exec rm {} \;
+	NOCONFIGURE=1 dh_autoreconf ./autogen.sh
 
 
+override_dh_clean:
+	-make distclean
+	dh_clean



More information about the Neon-commits mailing list