Add gtags target for xen/Makefile. Also update .hgignore.
PATCH 1/1 Add gtags target for xen/Makefile. Also update .hgignore.
# HG changeset patch
# User Wei Liu <[email protected]>
# Date 1329922671 0
# Node ID bb2986677df84b9709a60aea7e70ffd9f9e23f76 # Parent d433a9cb0089683b8f75458807c5437341f2cdcc Add gtags target for xen/Makefile. Also update .hgignore.
.hgignore +1 -0
@@ -23,6 +23,7 @@ ^\.config$ ^\.pc (^|/)(tags|TAGS)$ +(^|/)(GTAGS|GPATH|GSYMS|GRTAGS|gtags.*)$ ^build-.*$ ^dist/.*$ ^docs/.*\.aux$
xen/Makefile +9 -3
@@ -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.files GTAGS GPATH GRTAGS GSYMS $(TARGET).gz: $(TARGET) gzip -f -9 < $< > [email protected]
@@ -159,6 +159,12 @@ _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.files + gtags -f gtags.files + .PHONY: _cscope _cscope: $(all_sources) > cscope.files
xen/Makefile _tags: · line 167
Quoted 6 lines · Wei Liu
+.PHONY:
_gtagsxen/Makefile +5
-0+_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.
Quoted 11 lines · Tim Deegan
Review
Quoted 6 lines · Wei Liu
+.PHONY:
_gtags(quoted diff) +5
-0+_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.
Quoted 1 line
Tim.
----8<--------
# HG changeset patch
# User Wei Liu <[email protected]>
# Date 1330000012 0
# Node ID 0f817275c625527d560ebf9ec82c5037a502d3d5 # Parent d433a9cb0089683b8f75458807c5437341f2cdcc Add gtags target for xen/Makefile. Also update .hgignore.
.hgignore +1 -0
@@ -23,6 +23,7 @@ ^\.config$ ^\.pc (^|/)(tags|TAGS)$ +(^|/)(GTAGS|GPATH|GSYMS|GRTAGS)$ ^build-.*$ ^dist/.*$ ^docs/.*\.aux$
xen/Makefile +2 -3
@@ -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 < $< > [email protected] @@ -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
Wei Liu writes ("Re: [Xen-devel] [PATCH] Add gtags target for xen/Makefile. Also update .hgignore."):
Quoted 1 line
Add gtags target for xen/Makefile. Also update .hgignore.
This patch has been wordwrapped I'm afraid.
Ian.
Quoted 6 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [PATCH] Add gtags target for xen/Makefile. Also update .hgignore."):
Quoted 1 line
Add gtags target for xen/Makefile. Also update .hgignore.
This patch has been wordwrapped I'm afraid.
Ian.
My fault. Here is the correct one.
-----8<------
exporting patch:
# HG changeset patch
# User Wei Liu <[email protected]>
# Date 1330627381 0
# Node ID 6d2b5bac876f10ab59d8b98b557bb3a6173399a9 # Parent be6bd7febd33d5dd21cbbeb180e6907cd6038a77 Add gtags target for xen/Makefile. Also update .hgignore.
.hgignore +1 -0
@@ -23,6 +23,7 @@ ^\.config$ ^\.pc (^|/)(tags|TAGS)$ +(^|/)(GTAGS|GPATH|GSYMS|GRTAGS)$ ^build-.*$ ^dist/.*$ ^docs/.*\.aux$
xen/Makefile +8 -3
@@ -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 < $< > [email protected]
@@ -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
Ian Jackson
Acked-byWei Liu writes ("Re: [Xen-devel] [PATCH] Add gtags target for xen/Makefile. Also update .hgignore."):
Quoted 1 line
Add gtags target for xen/Makefile. Also update .hgignore.
Looks plausible to me.