ia64/xen-unstable

changeset 18014:e10f43449463

stubdom: Add root Makefile targets, disabled by default for now

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 09 14:21:42 2008 +0100 (2008-07-09)
parents c1577f094ae4
children 3669f358e62e
files Makefile
line diff
     1.1 --- a/Makefile	Wed Jul 09 14:08:58 2008 +0100
     1.2 +++ b/Makefile	Wed Jul 09 14:21:42 2008 +0100
     1.3 @@ -15,12 +15,18 @@ include buildconfigs/Rules.mk
     1.4  
     1.5  # build and install everything into the standard system directories
     1.6  .PHONY: install
     1.7 +ifdef CONFIG_STUBDOM
     1.8 +install: install-stubdom
     1.9 +endif
    1.10  install: install-xen install-kernels install-tools install-docs
    1.11  
    1.12  .PHONY: build
    1.13  build: kernels
    1.14  	$(MAKE) -C xen build
    1.15  	$(MAKE) -C tools build
    1.16 +ifdef CONFIG_STUBDOM
    1.17 +	$(MAKE) -C stubdom build
    1.18 +endif
    1.19  	$(MAKE) -C docs build
    1.20  
    1.21  # The test target is for unit tests that can run without an installation.  Of
    1.22 @@ -33,6 +39,9 @@ test:
    1.23  # build and install everything into local dist directory
    1.24  .PHONY: dist
    1.25  dist: DESTDIR=$(DISTDIR)/install
    1.26 +ifdef CONFIG_STUBDOM
    1.27 +dist: dist-stubdom
    1.28 +endif
    1.29  dist: dist-xen dist-kernels dist-tools dist-docs
    1.30  	$(INSTALL_DIR) $(DISTDIR)/check
    1.31  	$(INSTALL_DATA) ./COPYING $(DISTDIR)
    1.32 @@ -44,10 +53,11 @@ dist-%: install-%
    1.33  	@: # do nothing
    1.34  
    1.35  # Legacy dist targets
    1.36 -.PHONY: xen tools kernels docs
    1.37 +.PHONY: xen tools stubdom kernels docs
    1.38  xen: dist-xen
    1.39  tools: dist-tools
    1.40  kernels: dist-kernels
    1.41 +stubdom: dist-stubdom
    1.42  docs: dist-docs
    1.43  
    1.44  .PHONY: prep-kernels
    1.45 @@ -66,6 +76,10 @@ install-tools:
    1.46  install-kernels:
    1.47  	for i in $(XKERNELS) ; do $(MAKE) $$i-install || exit 1; done
    1.48  
    1.49 +.PHONY: install-stubdom
    1.50 +install-stubdom:
    1.51 +	$(MAKE) -C stubdom install
    1.52 +
    1.53  .PHONY: install-docs
    1.54  install-docs:
    1.55  	sh ./docs/check_pkgs && $(MAKE) -C docs install || true
    1.56 @@ -102,6 +116,7 @@ world:
    1.57  clean::
    1.58  	$(MAKE) -C xen clean
    1.59  	$(MAKE) -C tools clean
    1.60 +	$(MAKE) -C stubdom crossclean
    1.61  	$(MAKE) -C docs clean
    1.62  
    1.63  # clean, but blow away kernel build tree plus tarballs
    1.64 @@ -109,6 +124,7 @@ clean::
    1.65  distclean:
    1.66  	$(MAKE) -C xen distclean
    1.67  	$(MAKE) -C tools distclean
    1.68 +	$(MAKE) -C stubdom distclean
    1.69  	$(MAKE) -C docs distclean
    1.70  	rm -rf dist patches/tmp
    1.71  	for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done
    1.72 @@ -132,6 +148,7 @@ help:
    1.73  	@echo '  install-xen      - build and install the Xen hypervisor'
    1.74  	@echo '  install-tools    - build and install the control tools'
    1.75  	@echo '  install-kernels  - build and install guest kernels'
    1.76 +	@echo '  install-stubdom  - build and install the stubdomain images'
    1.77  	@echo '  install-docs     - build and install user documentation'
    1.78  	@echo ''
    1.79  	@echo 'Building targets:'
    1.80 @@ -140,6 +157,7 @@ help:
    1.81  	@echo '                     trees then make dist'
    1.82  	@echo '  xen              - build and install Xen hypervisor'
    1.83  	@echo '  tools            - build and install tools'
    1.84 +	@echo '  stubdomain       - build and install the stubdomain images'
    1.85  	@echo '  kernels          - build and install guest kernels'
    1.86  	@echo '  kbuild           - synonym for make kernels'
    1.87  	@echo '  docs             - build and install user documentation'