diff options
author | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2004-11-25 15:07:48 +0000 |
---|---|---|
committer | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2004-11-25 15:07:48 +0000 |
commit | e42012022b3e2431cd180e9983a0503ffeb74d1a (patch) | |
tree | 9e0175b4df3133b87c52de8afaf059519e69d793 /Makefile | |
parent | 92423cce13512a6362034e7a9b5242a74cfa0025 (diff) | |
download | xen-e42012022b3e2431cd180e9983a0503ffeb74d1a.tar.gz xen-e42012022b3e2431cd180e9983a0503ffeb74d1a.tar.bz2 xen-e42012022b3e2431cd180e9983a0503ffeb74d1a.zip |
bitkeeper revision 1.1159.187.11 (41a5f544EJGqYIJJBOFjrPctFG4vhA)
Add wildcard capability to the KERNELS= input to the top-level Makefile.
e.g. make KERNELS=*2.4* world
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -7,9 +7,12 @@ INSTALL_DIR ?= $(DIST_DIR)/install KERNELS ?= linux-2.6-xen0 linux-2.6-xenU # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU +# You may use wildcards in the above e.g. KERNELS=*2.4* ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*)) ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse)) +XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) ) + export INSTALL_DIR @@ -46,7 +49,7 @@ tools: $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C tools install kernels: - for i in $(KERNELS) ; do $(MAKE) $$i-build ; done + for i in $(XKERNELS) ; do $(MAKE) $$i-build ; done docs: sh ./docs/check_pkgs && \ @@ -57,11 +60,11 @@ kbuild: kernels # Delete the kernel build trees entirely kdelete: - for i in $(KERNELS) ; do $(MAKE) $$i-delete ; done + for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done # Clean the kernel build trees kclean: - for i in $(KERNELS) ; do $(MAKE) $$i-clean ; done + for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done # Make patches from kernel sparse trees mkpatches: |