[pkg-java] r3158 - trunk/glib-java/debian

Thomas Girard tgg at alioth.debian.org
Tue Apr 10 20:15:27 UTC 2007


Author: tgg
Date: 2007-04-10 20:15:27 +0000 (Tue, 10 Apr 2007)
New Revision: 3158

Modified:
   trunk/glib-java/debian/rules
Log:
hack to try to run distclean before unpatching


Modified: trunk/glib-java/debian/rules
===================================================================
--- trunk/glib-java/debian/rules	2007-04-10 15:54:12 UTC (rev 3157)
+++ trunk/glib-java/debian/rules	2007-04-10 20:15:27 UTC (rev 3158)
@@ -1,8 +1,13 @@
 #!/usr/bin/make -f
 
 include /usr/share/cdbs/1/rules/debhelper.mk
+
+# make sure we'll run distclean: target *before* unpatching
+# because upstream distclean: removes files we want to keep
+clean:: distclean-first
+
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 include /usr/share/cdbs/1/class/autotools.mk
-#include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 base = libglib-java
 jar  = glib0.4.jar
@@ -16,6 +21,7 @@
 endif
 
 DEB_CONFIGURE_EXTRA_FLAGS = --without-javadocs
+DEB_MAKE_CLEAN_TARGET = clean
 
 DEB_MAKE_INSTALL_TARGET  := install DESTDIR=$(CURDIR)/debian/tmp/ \
 	docdir='$$(datadir)/doc/$(base)' \
@@ -54,3 +60,5 @@
 	rm -f $(jar).so
 	find -name *.Plo | xargs -r rm -f
 
+distclean-first: debian/stamp-patched
+	-$(DEB_MAKE_INVOKE) -k distclean




More information about the pkg-java-commits mailing list