From: Wei Liu Subject: Re: [PATCH] Add gtags target for xen/Makefile. Also update .hgignore. Date: Thu, 23 Feb 2012 12:27:22 +0000 Message-ID: <1330000043.5468.73.camel@leeds.uk.xensource.com> References: <1329922812.5468.55.camel@leeds.uk.xensource.com> <20120223104520.GD25694@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120223104520.GD25694@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: "xen-devel@lists.xensource.com" , wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2012-02-23 at 10:45 +0000, Tim Deegan wrote: > At 15:00 +0000 on 22 Feb (1329922812), Wei Liu wrote: > > +.PHONY: _gtags > > +_gtags: > > + set -e; rm -f GTAGS GSYMS GPATH GRTAGS > > + $(all_sources) > gtags.files > > + gtags -f gtags.files > > + > > Minor nit: the gtags manpage suggests that '$(all_sources) | gtags -f -' > would work, and save us from tracking another file. > > Tim. ----8<-------- # HG changeset patch # User Wei Liu # Date 1330000012 0 # Node ID 0f817275c625527d560ebf9ec82c5037a502d3d5 # Parent d433a9cb0089683b8f75458807c5437341f2cdcc Add gtags target for xen/Makefile. Also update .hgignore. Signed-off-by: Wei Liu diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -23,6 +23,7 @@ ^\.config$ ^\.pc (^|/)(tags|TAGS)$ +(^|/)(GTAGS|GPATH|GSYMS|GRTAGS)$ ^build-.*$ ^dist/.*$ ^docs/.*\.aux$ diff --git a/xen/Makefile b/xen/Makefile --- a/xen/Makefile +++ b/xen/Makefile @@ -20,8 +20,8 @@ default: build .PHONY: dist dist: install -.PHONY: build install clean distclean cscope TAGS tags MAP -build install debug clean distclean cscope TAGS tags MAP:: +.PHONY: build install clean distclean cscope TAGS tags MAP gtags +build install debug clean distclean cscope TAGS tags MAP gtags:: $(MAKE) -f Rules.mk _$@ .PHONY: _build @@ -67,7 +67,7 @@ _clean: delete-unfresh-files .PHONY: _distclean _distclean: clean - rm -f tags TAGS cscope.files cscope.in.out cscope.out cscope.po.out + rm -f tags TAGS cscope.files cscope.in.out cscope.out cscope.po.out GTAGS GPATH GRTAGS GSYMS $(TARGET).gz: $(TARGET) gzip -f -9 < $< > $@.new @@ -159,6 +159,11 @@ _tags: $(call set_exuberant_flags,ctags); \ $(all_sources) | xargs ctags $$exuberant_flags -a +.PHONY: _gtags +_gtags: + set -e; rm -f GTAGS GSYMS GPATH GRTAGS + $(all_sources) | gtags -f - + .PHONY: _cscope _cscope: $(all_sources) > cscope.files