[BUILD] Add distclean build target to xen directory: cleans out tags.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 27 Jun 2006 10:50:57 +0000 (11:50 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 27 Jun 2006 10:50:57 +0000 (11:50 +0100)
Signed-off-by: Horms <horms@verge.net.au>
Makefile
docs/Makefile
tools/Makefile
xen/Makefile

index 4f7afd5c7b8ed114dfe48081ba6a2a2fb3f4d8d0..703f47daf16c96e02f3cc6d96e0d25d824b63752 100644 (file)
--- 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
index 196475042796d5b1097969735df100ecc8bb0637..59e9fa69d7420e443b45ff6862d05f6ebd43b880 100644 (file)
@@ -80,6 +80,9 @@ clean:
        rm -rf man5
        rm -rf man1
 
+.PHONY: distclean
+distclean: clean
+
 .PHONY: install
 install: all
        rm -rf $(DESTDIR)$(pkgdocdir)
index 54d738aa28322f297ed92a8e8d23cca9ea7705e0..6c490852a9d783e2a6889665f10d759d190b2bb1 100644 (file)
@@ -45,6 +45,9 @@ clean: check_clean
        done
        $(MAKE) ioemuclean
 
+.PHONY: distclean
+distclean: clean
+
 .PHONY: check
 check:
        $(MAKE) -C check
index 15656ce012a16a2d5731bc9347b85c8c4cd96286..cedd21396e91fde4387fd56777bba234ae95b99f 100644 (file)
@@ -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 $@