diff mbox

Makefile: fixed rule TAGS

Message ID 1249656191-26679-1-git-send-email-alexandre.bique@citrix.com
State Superseded
Headers show

Commit Message

Bique Alexandre Aug. 7, 2009, 2:43 p.m. UTC
- 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>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

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.*