Skip to contentSkip to conversation

ATAPI pass through v2: update the rule TAGS

PATCH In review Bique Alexandre 1 participant 1 message Jul 1, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 ATAPI pass through v2: update the rule TAGS

This patch updates the rule TAGS from the makefile.
This one is better because it works if the build directory is not the source directory and it doesn't need to be updated if you add a new sub-folder.

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