summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlexandre Bique <alexandre.bique@citrix.com>2009-08-07 15:43:11 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-24 08:01:41 -0500
commit21d4e8e3efc66964d1cbe4dd0eb8f18303f84fa9 (patch)
tree1f97683a1dab0f6c005d5bd4f0c05bb3e0aa4eb5
parent6b35e7bf488a894f8d9315d05846aae9bf580425 (diff)
downloadfocaccia-qemu-21d4e8e3efc66964d1cbe4dd0eb8f18303f84fa9.tar.gz
focaccia-qemu-21d4e8e3efc66964d1cbe4dd0eb8f18303f84fa9.zip
Makefile: fixed rule TAGS
- still works if the build dir is not the src dir
- use find instead of *.c block/*.c etc...

Signed-off-by: Alexandre Bique <alexandre.bique@citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f6bdf84c31..e595cb5ee3 100644
--- a/Makefile
+++ b/Makefile
@@ -244,8 +244,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.*