From: Bastian Blank Subject: [PATCH 2/4] tools - Call makefile recursive Date: Sat, 26 Jan 2008 16:14:34 +0100 Message-ID: <20080126151434.GB17726@wavehammer.waldi.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Bastian Blank # Date 1201359991 -3600 # Node ID a2098ff1ee2eeb65e726057a8351ff4048eaad2c # Parent bc5c341a07c097eba1695d64ff3fa80caa1a9e80 Call makefile recursive for subdirs. This makes it possible to handle subdirs different. Signed-off-by: Bastian Blank diff -r bc5c341a07c0 -r a2098ff1ee2e tools/Makefile --- a/tools/Makefile Sat Jan 26 16:06:31 2008 +0100 +++ b/tools/Makefile Sat Jan 26 16:06:31 2008 +0100 @@ -37,14 +37,14 @@ endif .PHONY: all all: check @set -e; for subdir in $(SUBDIRS-y); do \ - $(MAKE) -C $$subdir $@; \ + $(MAKE) subdir-$@-$$subdir; \ done $(MAKE) ioemu .PHONY: install install: check @set -e; for subdir in $(SUBDIRS-y); do \ - $(MAKE) -C $$subdir $@; \ + $(MAKE) subdir-$@-$$subdir; \ done $(MAKE) ioemuinstall $(INSTALL_DIR) $(DESTDIR)/var/xen/dump @@ -54,12 +54,21 @@ install: check .PHONY: clean clean: check_clean @set -e; for subdir in $(SUBDIRS-y); do \ - $(MAKE) -C $$subdir $@; \ + $(MAKE) subdir-$@-$$subdir; \ done $(MAKE) ioemuclean .PHONY: distclean distclean: clean + +subdir-all-%: + $(MAKE) -C $* all + +subdir-clean-%: + $(MAKE) -C $* clean + +subdir-install-%: + $(MAKE) -C $* install .PHONY: check check: