]> Git Repo - qemu.git/commitdiff
Makefile: fixed rule TAGS
authorAlexandre Bique <[email protected]>
Fri, 7 Aug 2009 14:43:11 +0000 (15:43 +0100)
committerAnthony Liguori <[email protected]>
Mon, 24 Aug 2009 13:01:41 +0000 (08:01 -0500)
- still works if the build dir is not the src dir
- use find instead of *.c block/*.c etc...

Signed-off-by: Alexandre Bique <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
Makefile

index f6bdf84c315024a02ef5e751318c33a109d1b65b..e595cb5ee3ce2589b586c8d490f18fc843aa3f84 100644 (file)
--- 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.*
This page took 0.023198 seconds and 4 git commands to generate.