[XEN][BUILD] Both ctags and etags support the -a (append) option, and
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 27 Jun 2006 10:27:25 +0000 (11:27 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 27 Jun 2006 10:27:25 +0000 (11:27 +0100)
by removing the tags or TAGS file, and then running using the
-a option in conjunction with xargs a full list of tags will
be obtained, regardless of how many files there are.

I believe that the existing invocations of both etags and ctags are wrong:

* I don't think - is a vailid argument to etags

* xargs ctags does not handle the case where ctags is invoked
  multiple times by xargs when there are too many files
  to fit on one command line.

Signed-off-by: Horms <horms@verge.net.au>
xen/Makefile

index 277ee87603a70ffffceb98f626031e07fa9358f7..15656ce012a16a2d5731bc9347b85c8c4cd96286 100644 (file)
@@ -132,11 +132,11 @@ endef
 
 .PHONY: _TAGS
 _TAGS: 
-       $(all_sources) | etags -
+       rm -f TAGS && $(all_sources) | xargs etags -a
 
 .PHONY: _tags
 _tags: 
-       $(all_sources) | xargs ctags
+       rm -f TAGS && $(all_sources) | xargs ctags -a
 
 .PHONY: _cscope
 _cscope: