From: Alexandre Bique Date: Fri, 7 Aug 2009 14:43:11 +0000 (+0100) Subject: Makefile: fixed rule TAGS X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=21d4e8e3efc66964d1cbe4dd0eb8f18303f84fa9;p=qemu.git 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 Signed-off-by: Anthony Liguori --- 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.*