ia64/xen-unstable

changeset 16904:7f2b79c05988

Call makefile recursively for subdirs.
This makes it possible to handle subdirs differently.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 15:26:41 2008 +0000 (2008-01-26)
parents 1fe8c8a275c9
children 363a1e845189
files tools/Makefile
line diff
     1.1 --- a/tools/Makefile	Sat Jan 26 15:26:15 2008 +0000
     1.2 +++ b/tools/Makefile	Sat Jan 26 15:26:41 2008 +0000
     1.3 @@ -37,14 +37,14 @@ endif
     1.4  .PHONY: all
     1.5  all: check
     1.6  	@set -e; for subdir in $(SUBDIRS-y); do \
     1.7 -		$(MAKE) -C $$subdir $@; \
     1.8 +		$(MAKE) subdir-$@-$$subdir; \
     1.9  	done
    1.10  	$(MAKE) ioemu
    1.11  
    1.12  .PHONY: install
    1.13  install: check
    1.14  	@set -e; for subdir in $(SUBDIRS-y); do \
    1.15 -		$(MAKE) -C $$subdir $@; \
    1.16 +		$(MAKE) subdir-$@-$$subdir; \
    1.17  	done
    1.18  	$(MAKE) ioemuinstall
    1.19  	$(INSTALL_DIR) $(DESTDIR)/var/xen/dump
    1.20 @@ -54,13 +54,22 @@ install: check
    1.21  .PHONY: clean
    1.22  clean: check_clean
    1.23  	@set -e; for subdir in $(SUBDIRS-y); do \
    1.24 -		$(MAKE) -C $$subdir $@; \
    1.25 +		$(MAKE) subdir-$@-$$subdir; \
    1.26  	done
    1.27  	$(MAKE) ioemuclean
    1.28  
    1.29  .PHONY: distclean
    1.30  distclean: clean
    1.31  
    1.32 +subdir-all-%:
    1.33 +	$(MAKE) -C $* all
    1.34 +
    1.35 +subdir-clean-%:
    1.36 +	$(MAKE) -C $* clean
    1.37 +
    1.38 +subdir-install-%:
    1.39 +	$(MAKE) -C $* install
    1.40 +
    1.41  .PHONY: check
    1.42  check:
    1.43  	$(MAKE) -C check