aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-03 18:54:03 +0000
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-03 18:54:03 +0000
commit81322d7eefbcaeab52da5a1c584b17703a78d2f4 (patch)
tree3a84034c3ea895801745cfb95d8b4d0d950c351c /Makefile
parent129eeeb2355df53999040179046df7cc79f637bd (diff)
downloadxen-81322d7eefbcaeab52da5a1c584b17703a78d2f4.tar.gz
xen-81322d7eefbcaeab52da5a1c584b17703a78d2f4.tar.bz2
xen-81322d7eefbcaeab52da5a1c584b17703a78d2f4.zip
bitkeeper revision 1.1159.156.1 (4189294bhEVxhbLKBhFfQF071MOltw)
Build system cleanups.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 615191c8fe..33a212ddbc 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,13 @@ SOURCEFORGE_MIRROR := http://heanet.dl.sourceforge.net/sourceforge
#KERNELS = mk.linux-2.6-xen0 mk.linux-2.6-xenU mk.linux-2.4-xen0 mk.linux-2.4-xenU mk.netbsd-2.0-xenU
KERNELS = mk.linux-2.6-xen0 mk.linux-2.6-xenU
+ALLKERNELS = $(patsubst buildconfigs/%,%,$(wildcard buildconfigs/mk.*))
+ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse))
+
export INSTALL_DIR SOURCEFORGE_MIRROR
-.PHONY: all dist install xen tools kernels docs kdelete kclean mkpatches world clean mrproper
+.PHONY: all dist install xen tools kernels docs world clean mkpatches mrproper
+.PHONY: kbuild kdelete kclean
all: dist
@@ -49,17 +53,19 @@ docs:
sh ./docs/check_pkgs && \
$(MAKE) prefix=$(INSTALL_DIR) dist=yes -C docs install || true
+kbuild: kernels
+
# Delete the kernel build trees entirely
kdelete:
for i in $(KERNELS) ; do $(MAKE) -f buildconfigs/$$i delete ; done
# Clean the kernel build trees
kclean:
- for i in $(KERNELS) ; do $(MAKE) -f buildconfigs/$$i delete ; done
+ for i in $(KERNELS) ; do $(MAKE) -f buildconfigs/$$i clean ; done
# Make patches from kernel sparse trees
mkpatches:
- $(MAKE) -f buildconfigs/Rules.mk mkpatches
+ for i in $(ALLSPARSETREES) ; do $(MAKE) -f buildconfigs/Rules.mk $$i-xen.patch ; done
# build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
@@ -77,9 +83,10 @@ clean:
$(MAKE) -C docs clean
# clean, but blow away kernel build tree plus tar balls
-mrproper: clean kdelete
- rm -rf dist patches *.tar.bz2
- $(MAKE) -f buildconfigs/Rules.mk mrproper
+mrproper: clean
+ rm -rf dist patches
+ for i in $(ALLKERNELS) ; do $(MAKE) -f buildconfigs/$$i delete ; done
+ for i in $(ALLSPARSETREES) ; do $(MAKE) -f buildconfigs/Rules.mk $$i-mrproper ; done
install-twisted:
wget http://www.twistedmatrix.com/products/get-current.epy