Skip to contentSkip to conversation

Makefile: updated the rule TAG

PATCH In review Bique Alexandre 1 participant 2 messages Aug 6, 2009 – Aug 7, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: updated the rule TAG

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

Signature · 1 line
Alexandre Bique
Makefile +2 -1
index 2a4b3f3..df5b5c4 100644
@@ -300,8 +300,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.*
#1 lore raw
Quoted 3 lines · On Thursday 06 August 2009 20:14:20 Bique Alexandre wrote:

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

I discard this patch. I resend it correctly.

Sorry.

Signature · 1 line
Alexandre Bique