From: Ian Campbell Subject: Re: [PATCH 4/5] make: Add subtree-update target Date: Wed, 16 Jul 2014 10:00:15 +0100 Message-ID: <1405501215.31075.22.camel@kazak.uk.xensource.com> References: <1405354526-20929-1-git-send-email-george.dunlap@eu.citrix.com> <1405354526-20929-4-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1405354526-20929-4-git-send-email-george.dunlap@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-07-14 at 17:15 +0100, George Dunlap wrote: > subtree-update will update all subtrees according to the current TAG specified > in Config.mk. I've often wanted this, thanks! Due to the previous it'll also clone/etc all the trees for you if they don't exist, won't it? People may well find that quite useful too. > Signed-off-by: George Dunlap > > --- > CC: Ian Campbell > CC: Ian Jackson > --- > Makefile | 4 ++++ > tools/Makefile | 9 +++++++++ > tools/firmware/Makefile | 8 ++++++++ > 3 files changed, 21 insertions(+) > > diff --git a/Makefile b/Makefile > index 41dabbf..b804bcf 100644 > --- a/Makefile > +++ b/Makefile > @@ -135,6 +135,10 @@ debball: dist > rpmball: dist > bash ./tools/misc/mkrpm $(XEN_ROOT) $$($(MAKE) -C xen xenversion --no-print-directory) > > +.PHONY: subtree-update > +subtree-update: > + $(MAKE) -C tools subtree-update > + > .PHONY: clean > clean:: > $(MAKE) -C xen clean > diff --git a/tools/Makefile b/tools/Makefile > index b6476c9..8725c59 100644 > --- a/tools/Makefile > +++ b/tools/Makefile > @@ -240,3 +240,12 @@ subdir-all-debugger/kdd: .phony > > subdir-distclean-firmware: .phony > $(MAKE) -C firmware distclean > + > +subtree-update: > +ifeq ($(CONFIG_QEMU_XEN),y) > + $(MAKE) qemu-xen-dir-force-update > +endif > +ifeq ($(CONFIG_QEMU_TRAD),y) > + $(MAKE) qemu-xen-traditional-dir-force-update > +endif > + $(MAKE) -C firmware subtree-update > diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile > index 660bacb..377a8cf 100644 > --- a/tools/firmware/Makefile > +++ b/tools/firmware/Makefile > @@ -88,3 +88,11 @@ subdir-clean-seabios-dir: > set -e; if test -d seabios-dir/.; then \ > $(MAKE) -C seabios-dir clean; \ > fi > + > +subtree-update: > +ifeq ($(CONFIG_SEABIOS),y) > + $(MAKE) seabios-dir-force-update > +endif > +ifeq ($(CONFIG_OVMF),y) > + $(MAKE) ovmf-dir-force-update > +endif