Patchwork Makefile: fixed rule TAGS

login
register
mail settings
Submitter Bique Alexandre
Date Aug. 7, 2009, 2:43 p.m.
Message ID <1249656191-26679-1-git-send-email-alexandre.bique@citrix.com>
Download mbox | patch
Permalink /patch/30935/
State Superseded
Headers show

Comments

Bique Alexandre - Aug. 7, 2009, 2:43 p.m.
- still works if the build dir is not the src dir
- use find instead of *.c block/*.c etc...

Signed-off-by: Alexandre Bique <alexandre.bique@citrix.com>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/Makefile b/Makefile
index d3f999e..052ca88 100644
--- a/Makefile
+++ b/Makefile
@@ -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.*