[glfw] 11/18: Fix the cleaning target in debian/rules

James Cowgill jcowgill-guest at moszumanska.debian.org
Fri Jun 26 11:22:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

jcowgill-guest pushed a commit to branch master
in repository glfw.

commit 70f81b6d88566e06f93ea07f8cf473510a73a5bb
Author: James Cowgill <james410 at cowgill.org.uk>
Date:   Sat Jun 20 21:43:47 2015 +0100

    Fix the cleaning target in debian/rules
    
    Use the right target (x11-dist-clean).
    Only run if config.log exists, Makefile always exists.
    After this the other cleaning commands are no longer needed.
---
 debian/rules | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index ae4cc91..051edb4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,9 +13,5 @@ override_dh_installdirs:
 	make x11-install PREFIX=$(CURDIR)/debian/tmp/usr
 	cp lib/x11/libglfw.so debian/tmp/usr/lib/libglfw.so.2.6
 
-override_dh_clean:
-	[ ! -f Makefile ] || $(MAKE) x11-clean
-	find -name '*.o' -or -name '*.a' -or -name '*.so' -delete
-	find -type f -executable -not -wholename "*debian*" -delete
-	rm config.log examples/Makefile.x11 lib/x11/Makefile.x11 tests/Makefile.x11 lib/x11/libglfw.pc.in
-	dh_clean
+override_dh_auto_clean:
+	[ ! -f config.log ] || $(MAKE) x11-dist-clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/glfw.git



More information about the Pkg-games-commits mailing list