]> xenbits.xensource.com Git - xen.git/commitdiff
Add gtags target for xen/Makefile. Also update .hgignore.
authorWei Liu <wei.liu2@citrix.com>
Wed, 7 Mar 2012 07:28:12 +0000 (07:28 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 7 Mar 2012 07:28:12 +0000 (07:28 +0000)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
.hgignore
xen/Makefile

index 008e5fb27cdda75e2276972c1f74d70ff06ab2f5..abd9094f6e5ce913910f761aae00b1c5f8e6503f 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -23,6 +23,7 @@
 ^\.config$
 ^\.pc
 (^|/)(tags|TAGS)$
+(^|/)(GTAGS|GPATH|GSYMS|GRTAGS)$
 ^build-.*$
 ^dist/.*$
 ^docs/.*\.aux$
index 1d74b7ad11409af5c2c274e1d76fda3855058d5e..564f7080ee5809c26197c724d643a6423f52e5e7 100644 (file)
@@ -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