WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] build: add disclean target to docs, tools and xen di

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] build: add disclean target to docs, tools and xen directories
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 23 Jun 2006 16:18:24 +0900
Delivery-date: Fri, 23 Jun 2006 07:20:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11+cvs20060403
The primary purpose of this patch is to make sure that the tags file
and friends are cleaned out of xen/ on make distclean. It seemed
clean to do this by adding a distclean target to that directory.

In order to do this vaugely efficiently, the toplevel Makefile
should use the distclean target instead of clean for the xen directory,
and in order to make this consistent I implemented disclean targets
for docs and tools that just do the same things as clean.

Signed-Off-By: Horms <horms@xxxxxxxxxxxx>

 Makefile       |    5 ++++-
 docs/Makefile  |    3 +++
 tools/Makefile |    3 +++
 xen/Makefile   |    8 ++++++--
 4 files changed, 16 insertions(+), 3 deletions(-)

--- x/Makefile
+++ x/Makefile
@@ -123,7 +123,10 @@ clean:: 
 
 # clean, but blow away kernel build tree plus local tarballs
 .PHONY: distclean
-distclean: clean kdelete
+distclean: kdelete
+       $(MAKE) -C xen distclean
+       $(MAKE) -C tools distclean
+       $(MAKE) -C docs distclean
        rm -rf dist patches/tmp
        for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-mrproper ; done
        rm -rf patches/*/.makedep
--- x/docs/Makefile
+++ x/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)
--- x/tools/Makefile
+++ x/tools/Makefile
@@ -45,6 +45,9 @@ clean: check_clean
        done
        $(MAKE) ioemuclean
 
+.PHONY: distclean
+distclean: clean
+
 .PHONY: check
 check:
        $(MAKE) -C check
--- x/xen/Makefile
+++ x/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 $@

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] build: add disclean target to docs, tools and xen directories, Horms <=