diff options
author | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-11-15 10:56:35 +0000 |
---|---|---|
committer | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-11-15 10:56:35 +0000 |
commit | 2ccd2269e200b64c9bef019e73966d9ea5bae6e0 (patch) | |
tree | 14be57754ae292e7933a1c64d76290196f968f72 /buildconfigs | |
parent | d81588d7ce68cb5ef6f3f9c58bb420f1cb4573dd (diff) | |
download | xen-2ccd2269e200b64c9bef019e73966d9ea5bae6e0.tar.gz xen-2ccd2269e200b64c9bef019e73966d9ea5bae6e0.tar.bz2 xen-2ccd2269e200b64c9bef019e73966d9ea5bae6e0.zip |
bitkeeper revision 1.1159.170.23 (41988b637H-s7zBc_EhrKCZog7CGNw)
Clean up multi-kernel build system.
Diffstat (limited to 'buildconfigs')
-rw-r--r-- | buildconfigs/Rules.mk | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/buildconfigs/Rules.mk b/buildconfigs/Rules.mk index 31e8c8e8c7..3fbef08e19 100644 --- a/buildconfigs/Rules.mk +++ b/buildconfigs/Rules.mk @@ -1,17 +1,10 @@ -# We expect these two to already be set if people -# are using the top-level Makefile -DIST_DIR ?= $(shell pwd)/dist -INSTALL_DIR ?= $(DIST_DIR)/install - .PHONY: mkpatches mrproper - # Setup pristine search path PRISTINE_SRC_PATH ?= .:.. vpath pristine-% $(PRISTINE_SRC_PATH) - # Expand Linux series to Linux version LINUX_SERIES ?= 2.6 LINUX_VER ?= $(patsubst linux-%-xen-sparse,%,$(wildcard linux-$(LINUX_SERIES)*-xen-sparse)) @@ -26,8 +19,6 @@ linux-%.tar.bz2: @echo "Cannot find $@ in path $(LINUX_SRC_PATH)" wget http://www.kernel.org/pub/linux/kernel/v$(_LINUX_VDIR)/$@ -O./$@ - - # Expand NetBSD release to NetBSD version NETBSD_RELEASE ?= 2.0 NETBSD_VER ?= $(patsubst netbsd-%-xen-sparse,%,$(wildcard netbsd-$(NETBSD_RELEASE)*-xen-sparse)) @@ -45,9 +36,6 @@ netbsd-%-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2: netbsd-%.tar.bz2: netbsd-%-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2 ln -fs $< $@ - - - pristine-%: %.tar.bz2 rm -rf tmp-$(@F) $@ mkdir -p tmp-$(@F) @@ -56,6 +44,15 @@ pristine-%: %.tar.bz2 touch $@ # update timestamp to avoid rebuild @rm -rf tmp-$(@F) +%-build: + $(MAKE) -f buildconfigs/mk.$* build + +%-delete: + $(MAKE) -f buildconfigs/mk.$* delete + +%-clean: + $(MAKE) -f buildconfigs/mk.$* clean + %-xen.patch: pristine-% rm -rf tmp-$@ cp -al $< tmp-$@ |