diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | docs/Makefile | 3 | ||||
-rw-r--r-- | tools/Makefile | 3 | ||||
-rw-r--r-- | xen/Makefile | 8 |
4 files changed, 16 insertions, 3 deletions
@@ -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 $@ |