* [Qemu-devel] [PATCH 1/1] Makefile: updated the rule TAG
@ 2009-08-06 19:14 Bique Alexandre
2009-08-07 14:43 ` Bique Alexandre
0 siblings, 1 reply; 2+ messages in thread
From: Bique Alexandre @ 2009-08-06 19:14 UTC (permalink / raw)
To: qemu-devel@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 133 bytes --]
Better rule TAG:
- still works if the build dir is not the src dir
- use find instead of *.c block/*.c etc...
--
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] 2+ messages in thread
end of thread, other threads:[~2009-08-07 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 19:14 [Qemu-devel] [PATCH 1/1] Makefile: updated the rule TAG Bique Alexandre
2009-08-07 14:43 ` 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).