Skip to contentSkip to conversation

Makefile: fixed rule TAGS

PATCH New Alexandre Bique 1 participant 1 message Aug 7, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: fixed rule TAGS

- still works if the build dir is not the src dir
- use find instead of *.c block/*.c etc...

---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Makefile +2 -1
index d3f999e..052ca88 100644
@@ -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.*
Signature · 1 line
1.6.4