aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--docs/Makefile3
-rw-r--r--tools/Makefile3
-rw-r--r--xen/Makefile8
4 files changed, 16 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4f7afd5c7b..703f47daf1 100644
--- a/Makefile
+++ b/Makefile
@@ -123,7 +123,10 @@ clean::
# clean, but blow away kernel build tree plus tarballs
.PHONY: distclean
-distclean: clean
+distclean:
+ $(MAKE) -C xen distclean
+ $(MAKE) -C tools distclean
+ $(MAKE) -C docs distclean
rm -rf dist patches/tmp
for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done
for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-mrproper ; done
diff --git a/docs/Makefile b/docs/Makefile
index 1964750427..59e9fa69d7 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -80,6 +80,9 @@ clean:
rm -rf man5
rm -rf man1
+.PHONY: distclean
+distclean: clean
+
.PHONY: install
install: all
rm -rf $(DESTDIR)$(pkgdocdir)
diff --git a/tools/Makefile b/tools/Makefile
index 54d738aa28..6c490852a9 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -45,6 +45,9 @@ clean: check_clean
done
$(MAKE) ioemuclean
+.PHONY: distclean
+distclean: clean
+
.PHONY: check
check:
$(MAKE) -C check
diff --git a/xen/Makefile b/xen/Makefile
index 15656ce012..cedd21396e 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -14,8 +14,8 @@ default: build
.PHONY: dist
dist: install
-.PHONY: build install clean cscope TAGS tags
-build install debug clean cscope TAGS tags::
+.PHONY: build install clean distclean cscope TAGS tags
+build install debug clean distclean cscope TAGS tags::
make -f Rules.mk _$@
.PHONY: _build
@@ -50,6 +50,10 @@ _clean: delete-unfresh-files
rm -f include/asm-*/asm-offsets.h
rm -f include/xen/acm_policy.h
+.PHONY: _distclean
+_distclean: clean
+ rm -f tags TAGS cscope.files cscope.in.out cscope.out cscope.po.out
+
$(TARGET).gz: $(TARGET)
gzip -f -9 < $< > $@.new
mv $@.new $@