WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 2/4] tools - Call makefile recursive

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 2/4] tools - Call makefile recursive
From: Bastian Blank <bastian@xxxxxxxxxxxx>
Date: Sat, 26 Jan 2008 16:14:34 +0100
Delivery-date: Sat, 26 Jan 2008 07:15:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
# HG changeset patch
# User Bastian Blank <waldi@xxxxxxxxxx>
# 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 <waldi@xxxxxxxxxx>

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:

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 2/4] tools - Call makefile recursive, Bastian Blank <=