ia64/xen-unstable

changeset 10640:ef80b6e4e03a

[BUILD] Miscellaneous build-system fixes and tweaks.

* Don't delete non-existent %.tar.bz2 in buildconfigs/Rules.mk's %-mrproper
* Add a mrpropper target to buildconfigs/mk.linux-2.6-xen, and
have this delete the local tarball
- This should also delete the local patch, if there is one, but I am not
sure how to do this with the current incarntation of the code, and I
will post a subsequent patch which makes this easier and effects this
chang. As there currently is no local patch this is not a big deal at
this moment. (Horms)
* Stop kclean from erroring out if the kernel directory doesn't exist
* Remove patches/*/.makedep in top level Makefile rather than in
buildconfigs/Rules.mk, as calling rules in the latter causes
patches/*/.make to be created (Magnus)

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Horms <horms@verge.net.au>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jul 03 08:56:29 2006 +0100 (2006-07-03)
parents 5f5d400eb60a
children 18abc9eb9a31
files Makefile buildconfigs/Rules.mk buildconfigs/mk.linux-2.6-xen
line diff
     1.1 --- a/Makefile	Mon Jul 03 08:55:08 2006 +0100
     1.2 +++ b/Makefile	Mon Jul 03 08:56:29 2006 +0100
     1.3 @@ -130,6 +130,7 @@ distclean:
     1.4  	rm -rf dist patches/tmp
     1.5  	for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done
     1.6  	for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-mrproper ; done
     1.7 +	rm -rf patches/*/.makedep
     1.8  
     1.9  # Linux name for GNU distclean
    1.10  .PHONY: mrproper
     2.1 --- a/buildconfigs/Rules.mk	Mon Jul 03 08:55:08 2006 +0100
     2.2 +++ b/buildconfigs/Rules.mk	Mon Jul 03 08:56:29 2006 +0100
     2.3 @@ -59,10 +59,6 @@ ifneq ($(PATCHDIRS),)
     2.4  $(patsubst patches/%,patches/%/.makedep,$(PATCHDIRS)): patches/%/.makedep: 
     2.5  	@echo 'ref-$*/.valid-ref: $$(wildcard patches/$*/*.patch)' >$@
     2.6  
     2.7 -.PHONY: clean
     2.8 -clean::
     2.9 -	rm -f patches/*/.makedep
    2.10 -
    2.11  ref-%/.valid-ref: pristine-%/.valid-pristine
    2.12  	set -e
    2.13  	rm -rf $(@D)
    2.14 @@ -111,7 +107,8 @@ linux-2.6-xen.patch: ref-linux-$(LINUX_V
    2.15  	rm -rf tmp-$@
    2.16  
    2.17  %-mrproper:
    2.18 -	rm -rf pristine-$(*)* ref-$(*)* $*.tar.bz2
    2.19 +	$(MAKE) -f buildconfigs/mk.$*-xen mrpropper
    2.20 +	rm -rf pristine-$(*)* ref-$(*)*
    2.21  	rm -rf $*-xen.patch
    2.22  
    2.23  .PHONY: config-update-pae
     3.1 --- a/buildconfigs/mk.linux-2.6-xen	Mon Jul 03 08:55:08 2006 +0100
     3.2 +++ b/buildconfigs/mk.linux-2.6-xen	Mon Jul 03 08:56:29 2006 +0100
     3.3 @@ -47,8 +47,14 @@ config: $(LINUX_DIR)/include/linux/autoc
     3.4  
     3.5  .PHONY: clean
     3.6  clean::
     3.7 -	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) clean
     3.8 +	[ ! -d $(LINUX_DIR) ] || \
     3.9 +		$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) clean
    3.10 +
    3.11  
    3.12  .PHONY: delete
    3.13  delete: 
    3.14  	rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR) 
    3.15 +
    3.16 +.PHONY: mrpropper
    3.17 +mrpropper:
    3.18 +	rm -f linux-$(LINUX_VER).tar.bz2