aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2012-03-07 07:28:12 +0000
committerWei Liu <wei.liu2@citrix.com>2012-03-07 07:28:12 +0000
commit520cc68bac404b374596a550dbf5cf54beb30b8b (patch)
tree970799cd5858e1a269b2437b869dcb62461b87e5
parentb29b83176813f9e67fd92aca54fd8323e62e45ba (diff)
downloadxen-520cc68bac404b374596a550dbf5cf54beb30b8b.tar.gz
xen-520cc68bac404b374596a550dbf5cf54beb30b8b.tar.bz2
xen-520cc68bac404b374596a550dbf5cf54beb30b8b.zip
Add gtags target for xen/Makefile. Also update .hgignore.
Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r--.hgignore1
-rw-r--r--xen/Makefile11
2 files changed, 9 insertions, 3 deletions
diff --git a/.hgignore b/.hgignore
index 008e5fb27c..abd9094f6e 100644
--- 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
index 1d74b7ad11..564f7080ee 100644
--- 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