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

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH 1/8] tools - Add generic subdirs rules

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 1/8] tools - Add generic subdirs rules
From: Bastian Blank <bastian@xxxxxxxxxxxx>
Date: 2008年3月21日 14:01:42 +0100
Delivery-date: 2008年3月21日 06:02:04 -0700
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 1206103827 -3600
# Node ID f08e76266aa7190436f013532cd01d9693ebdaa8
# Parent 76c9cf11ce23540b6016116a972bb4f0e0480a14
Add generic subdirs rules.
Use them in the toplevel Makefile.
Signed-off-by: Bastian Blank <waldi@xxxxxxxxxx>
diff -r 76c9cf11ce23 -r f08e76266aa7 tools/Makefile
--- a/tools/Makefile Fri Mar 21 09:45:34 2008 +0000
+++ b/tools/Makefile Fri Mar 21 13:50:27 2008 +0100
@@ -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 f08e76266aa7 tools/Rules.mk
--- a/tools/Rules.mk Fri Mar 21 09:45:34 2008 +0000
+++ b/tools/Rules.mk Fri Mar 21 13:50:27 2008 +0100
@@ -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-%-$*,%,$@)
+
-- 
She won' go Warp 7, Cap'n! The batteries are dead!
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] VMX nightly testing for Xen:#17269 is blocked , Samuel Thibault
Next by Date: [Xen-devel] [PATCH 2/8] tools/xenstat - Use generic subdirs rules , Bastian Blank
Previous by Thread: [Xen-devel] [PATCH] ioemu: fix VNC case when switching from 32bpp to 24bpp , Samuel Thibault
Next by Thread: Re: [Xen-devel] [PATCH 1/8] tools - Add generic subdirs rules , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /