From 2639d4fd5c43a0e2e913c13df4103b7f279bb629 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Thu, 2 Dec 2004 09:21:05 +0000 Subject: bitkeeper revision 1.1159.187.49 (41aede81IBQOThmH0W0AYSHb2Gt7sA) Split out install targets in root Makefile. --- Makefile | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 83a844202e..13f5c5cb97 100644 --- a/Makefile +++ b/Makefile @@ -19,29 +19,38 @@ export INSTALL_DIR include buildconfigs/Rules.mk .PHONY: all dist install xen tools kernels docs world clean mkpatches mrproper -.PHONY: kbuild kdelete kclean +.PHONY: kbuild kdelete kclean install_tools install_xen install_docs +.PHONY: install_kernel all: dist -# build and install everything into local dist directory -dist: xen tools kernels docs - install -m0644 ./COPYING $(DIST_DIR) - install -m0644 ./README $(DIST_DIR) - install -m0755 ./install.sh $(DIST_DIR) - mkdir -p $(DIST_DIR)/check - install -m0755 tools/check/chk tools/check/check_* $(DIST_DIR)/check - # install everything into the standard system directories # NB: install explicitly does not check that everything is up to date! -install: +install: install_tools install_xen install_kernels install_docs + +install_xen: $(MAKE) -C xen install + +install_tools: $(MAKE) -C tools install + +install_kernels: $(shell cp -a $(INSTALL_DIR)/boot/* /boot/) $(shell cp -a $(INSTALL_DIR)/lib/modules/* /lib/modules/) - sh ./docs/check_pkgs && $(MAKE) -C docs install || true $(shell cp -dR $(INSTALL_DIR)/boot/*$(LINUX_VER)* $(prefix)/boot/) $(shell cp -dR $(INSTALL_DIR)/lib/modules/* $(prefix)/lib/modules/) +install_docs: + sh ./docs/check_pkgs && $(MAKE) -C docs install || true + +# build and install everything into local dist directory +dist: xen tools kernels docs + install -m0644 ./COPYING $(DIST_DIR) + install -m0644 ./README $(DIST_DIR) + install -m0755 ./install.sh $(DIST_DIR) + mkdir -p $(DIST_DIR)/check + install -m0755 tools/check/chk tools/check/check_* $(DIST_DIR)/check + xen: $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C xen install -- cgit v1.2.3