qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Makefile: fixed rule TAGS


From: Alexandre Bique
Subject: [Qemu-devel] [PATCH] Makefile: fixed rule TAGS
Date: Fri, 7 Aug 2009 15:43:11 +0100

- still works if the build dir is not the src dir
- use find instead of *.c block/*.c etc...

Signed-off-by: Alexandre Bique <address@hidden>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index d3f999e..052ca88 100644
--- a/Makefile
+++ b/Makefile
@@ -285,8 +285,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.*
-- 
1.6.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]