diff --git a/debian/rules b/debian/rules index 85b7cf568..c3801ba5f 100755 --- a/debian/rules +++ b/debian/rules @@ -11,7 +11,7 @@ MAJOR := $(word 1,$(subst ., ,$(VERSION))).$(word 2,$(subst ., ,$(VERSION))) include debian/rules.defs -setup: $(STAMPS_DIR)/setup-stamp +setup: debian/control $(STAMPS_DIR)/setup-stamp $(STAMPS_DIR)/setup-stamp: $(BUILD_DIR) $(STAMPS_DIR) dh_testdir $(MAKE) -f debian/rules.gen setup-$(DEB_HOST_ARCH) @@ -41,11 +41,9 @@ orig: ../orig/linux-$(MAJOR)-$(VERSION) maintainerclean: rm -rf $(filter-out debian, $(wildcard *)) -clean: unpatch +clean: debian/control dh_testdir - rm -f version.Debian - cd debian; rm -f *.kpatches.arch - rm -rf $(BUILD_DIR) $(STAMPS_DIR) debian/lib/python/*.pyc + rm -rf $(BUILD_DIR) $(STAMPS_DIR) debian/lib/python/*.pyc debian/*.kpatches.arch dh_clean binary-indep: build @@ -85,4 +83,4 @@ debian/control-real: debian/bin/gencontrol.py $(CONTROL_FILES) @echo exit 1 -.PHONY: clean build setup binary-indep binary-arch binary patch unpatch source tree +.PHONY: clean build setup binary-indep binary-arch binary