From 21d4e8e3efc66964d1cbe4dd0eb8f18303f84fa9 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Fri, 7 Aug 2009 15:43:11 +0100 Subject: [PATCH] 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 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.*