qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/5] ATAPI pass through v2: update the rule TAGS
@ 2009-07-01 18:31 Bique Alexandre
  0 siblings, 0 replies; only message in thread
From: Bique Alexandre @ 2009-07-01 18:31 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

This patch updates the rule TAGS from the makefile.
This one is better because it works if the build directory is not the source 
directory and it doesn't need to be updated if you add a new sub-folder.
-- 
Alexandre Bique

[-- Attachment #2: makefile-tags-rule --]
[-- Type: text/x-patch, Size: 323 bytes --]

diff --git a/Makefile b/Makefile
index 2a4b3f3..df5b5c4 100644
--- a/Makefile
+++ b/Makefile
@@ -300,8 +300,9 @@ endif
 test speed: all
 	$(MAKE) -C tests $@
 
+.PHONY: TAGS
 TAGS:
-	etags *.[ch] tests/*.[ch] block/*.[ch] hw/*.[ch]
+	find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
 
 cscope:
 	rm -f ./cscope.*

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-01 18:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-01 18:31 [Qemu-devel] [PATCH 1/5] ATAPI pass through v2: update the rule TAGS Bique Alexandre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).