Only run make distclean if there's a Makefile.
authorBernd Zeimetz <bernd@bzed.de>
Sat, 23 Aug 2008 15:11:00 +0000 (17:11 +0200)
committerBernd Zeimetz <bernd@bzed.de>
Sat, 23 Aug 2008 15:11:00 +0000 (17:11 +0200)
debian/rules

index 8b65de8..d90d3a9 100755 (executable)
@@ -60,7 +60,7 @@ clean-patched:
        rm -f build-stamp 
 
        # Add here commands to clean up after the build process.
-       $(MAKE) distclean
+       [ ! -f Makefile ] || $(MAKE) distclean
        find $(CURDIR) -name Makefile.in -print0 | xargs -0 rm -f
        find $(CURDIR)/intl -mindepth 1 -name VERSION -o -type f -print0 | xargs -0 rm -f
        find $(CURDIR)/po -mindepth 1 -name '*.po' -o -name Makefile.am -o -print0 | xargs -0 rm -f