diff options
-rw-r--r-- | Makefile | 31 |
1 files changed, 20 insertions, 11 deletions
@@ -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 |