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-changelog

[Xen-changelog] [xen-unstable] build: Add generic subdirs rules.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] build: Add generic subdirs rules.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 Mar 2008 08:00:07 -0700
Delivery-date: Tue, 25 Mar 2008 08:00:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1206438521 0
# Node ID 5b4dad214f91576f5dd8d39d3b9aa1f47b37d9a2
# Parent  76c9cf11ce23540b6016116a972bb4f0e0480a14
build: Add generic subdirs rules.

Use them in the toplevel Makefile.

Signed-off-by: Bastian Blank <waldi@xxxxxxxxxx>
---
 tools/Makefile |   24 +++---------------------
 tools/Rules.mk |   10 ++++++++++
 2 files changed, 13 insertions(+), 21 deletions(-)

diff -r 76c9cf11ce23 -r 5b4dad214f91 tools/Makefile
--- a/tools/Makefile    Fri Mar 21 09:45:34 2008 +0000
+++ b/tools/Makefile    Tue Mar 25 09:48:41 2008 +0000
@@ -37,34 +37,16 @@ endif
 endif
 
 .PHONY: all
-all:
-       @set -e; for subdir in $(SUBDIRS-y); do \
-               $(MAKE) subdir-$@-$$subdir; \
-       done
+all: subdirs-all
 
 .PHONY: install
-install:
-       @set -e; for subdir in $(SUBDIRS-y); do \
-               $(MAKE) subdir-$@-$$subdir; \
-       done
+install: subdirs-install
        $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
        $(INSTALL_DIR) $(DESTDIR)/var/log/xen
        $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
 
 .PHONY: clean distclean
-clean distclean:
-       @set -e; for subdir in $(SUBDIRS-y); do \
-               $(MAKE) subdir-clean-$$subdir; \
-       done
-
-subdir-all-%:
-       $(MAKE) -C $* all
-
-subdir-clean-%:
-       $(MAKE) -C $* clean
-
-subdir-install-%:
-       $(MAKE) -C $* install
+clean distclean: subdirs-clean
 
 ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
 IOEMU_CONFIGURE_CROSS ?= --cross-prefix=$(CROSS_COMPILE) \
diff -r 76c9cf11ce23 -r 5b4dad214f91 tools/Rules.mk
--- a/tools/Rules.mk    Fri Mar 21 09:45:34 2008 +0000
+++ b/tools/Rules.mk    Tue Mar 25 09:48:41 2008 +0000
@@ -49,3 +49,13 @@ check-$(CONFIG_X86) = $(call cc-ver-chec
 %.o: %.cc
        $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
 
+.PHONY: subdirs-all subdirs-clean subdirs-install
+.NOTPARALLEL: subdirs-all subdirs-clean subdirs-install
+subdirs-all subdirs-clean subdirs-install:
+       @set -e; for subdir in $(SUBDIRS) $(SUBDIRS-y); do \
+               $(MAKE) subdir-$(patsubst subdirs-%,%,$@)-$$subdir; \
+       done
+
+subdir-all-% subdir-clean-% subdir-install-%:
+       $(MAKE) -C $* $(patsubst subdir-%-$*,%,$@)
+

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] build: Add generic subdirs rules., Xen patchbot-unstable <=