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>
This commit is contained in:
Alexandre Bique 2009-08-07 15:43:11 +01:00 committed by Anthony Liguori
parent 6b35e7bf48
commit 21d4e8e3ef
1 changed files with 2 additions and 1 deletions

View File

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