aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdebian/rules5
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index 592076d..7f02e2c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,9 +50,8 @@ build-stamp: config.status
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
- -$(MAKE) distclean
- dh_clean
+ [ ! -f Makefile ] || $(MAKE) distclean
+ dh_clean build-stamp
install: build
dh_testdir