diff options
author | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2005-01-24 22:34:15 +0000 |
---|---|---|
committer | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2005-01-24 22:34:15 +0000 |
commit | eab8489a4970a3ad8b03d6b81499401e363c7ebb (patch) | |
tree | 31b3c06d2ca9ffb65d809b3d4cf78f9716dfa6d6 /Makefile | |
parent | 323114c5b34149b3b648ebdee08b24c78b0128de (diff) | |
download | xen-eab8489a4970a3ad8b03d6b81499401e363c7ebb.tar.gz xen-eab8489a4970a3ad8b03d6b81499401e363c7ebb.tar.bz2 xen-eab8489a4970a3ad8b03d6b81499401e363c7ebb.zip |
bitkeeper revision 1.1159.223.29 (41f577e7ZJYpBbgJi8udTXWyfHvSYg)
Cset exclude: iap10@labyrinth.cl.cam.ac.uk|ChangeSet|20050122214333|39257
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 57 |
1 files changed, 35 insertions, 22 deletions
@@ -31,26 +31,27 @@ all: dist # install everything into the standard system directories # NB: install explicitly does not check that everything is up to date! -install: xen.install tools.install kernels docs.install +install: install-tools install-xen install-kernels install-docs -kernels.install: +install-xen: + $(MAKE) -C xen install + +install-tools: + $(MAKE) -C tools install + +install-kernels: cp -a $(INSTALL_DIR)/boot/* /boot/ cp -a $(INSTALL_DIR)/lib/modules/* /lib/modules/ cp -dR $(INSTALL_DIR)/boot/*$(LINUX_VER)* $(prefix)/boot/ cp -dR $(INSTALL_DIR)/lib/modules/* $(prefix)/lib/modules/ -docs.install: +install-docs: + sh ./docs/check_pkgs && $(MAKE) -C docs install || true sh ./docs/check_pkgs -$(MAKE) -C docs install -xen.install tools.install: %.install: - $(MAKE) -C $* install - -xen.dist tools.dist: %.dist: - $(MAKE) -C $* dist - # build and install everything into local dist directory -dist: xen.dist tools.dist kernels docs.install +dist: xen tools kernels docs $(INSTALL_DIR) $(DIST_DIR)/check $(INSTALL_DATA) ./COPYING $(DIST_DIR) $(INSTALL_DATA) ./README $(DIST_DIR) @@ -63,7 +64,8 @@ xen: tools: $(MAKE) dist=yes -C tools install -kernels: $(addsuffix -build,$(XKERNELS)) +kernels: + for i in $(XKERNELS) ; do $(MAKE) $$i-build ; done docs: sh ./docs/check_pkgs @@ -73,13 +75,17 @@ docs: kbuild: kernels # Delete the kernel build trees entirely -kdelete: $(addsuffix -clean,$(XKERNELS)) +kdelete: + for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done # Clean the kernel build trees -kclean: $(addsuffix -clean,$(XKERNELS)) +kclean: + for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done # Make patches from kernel sparse trees -mkpatches: $(addsuffix -xen.patch,$(ALLSPARSETREES)) +mkpatches: + for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-xen.patch ; done + # build xen, the tools, and a domain 0 plus unprivileged linux-xen images, # and place them in the install directory. 'make install' should then @@ -90,14 +96,16 @@ world: $(MAKE) dist # clean doesn't do a kclean -clean: xen.clean tools.clean docs.clean - -xen.clean tools.clean docs.clean: %.clean: - $(MAKE) -C $* clean +clean: + $(MAKE) -C xen clean + $(MAKE) -C tools clean + $(MAKE) -C docs clean # clean, but blow away kernel build tree plus tar balls -mrproper: clean $(addsuffix -delete,$(ALLKERNELS)) $(addsuffix -mrproper,$(ALLSPARSETREES)) +mrproper: clean rm -rf dist patches/tmp + for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done + for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-mrproper ; done install-twisted: wget http://www.twistedmatrix.com/products/get-current.epy @@ -159,8 +167,13 @@ uninstall: rm -rf "/usr/lib/python2.?/site-packages/xen* /usr/lib/libxc* /usr/lib/python2.?/site-packages/Xc*" # Legacy targets for compatibility -linux24: linux-2.4-xen0-build linux-2.4-xenU-build +linux24: + $(MAKE) linux-2.4-xen0-build + $(MAKE) linux-2.4-xenU-build -linux26: linux-2.6-xen0-build linux-2.6-xenU-build +linux26: + $(MAKE) linux-2.6-xen0-build + $(MAKE) linux-2.6-xenU-build -netbsd20: netbsd-2.0-xenU-build +netbsd20: + $(MAKE) netbsd-2.0-xenU-build |