Skip to contentSkip to conversation

Makefile: Minor cscope fixups

PATCH Applied Alexandre Raymond 2 participants 2 messages Jul 21, 2011 – Jul 25, 2011 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Makefile: Minor cscope fixups

Changes since v1:
-Use SRC_PATH instead of PWD

-Create cscope symbols for assembly files in addition to .c/.h files. -Create cscope database with full path instead of relative path so cscope
can be used with CSCOPE_DB in any directory.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index b3ffbe2..fbdaecc 100644
@@ -254,7 +254,7 @@ TAGS:
 
 cscope:
 	rm -f ./cscope.*
-	find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
+	find "$(SRC_PATH)" -name "*.[chsS]" -print | sed 's,^\./,,' > ./cscope.files
 	cscope -b
 
 # documentation
Signature · 1 line
1.7.5
#1 lore raw
Quoted 11 lines · Alexandre Raymond

Changes since v1:

(quoted diff) +0 -3
-Use SRC_PATH instead of PWD
 
-Create cscope symbols for assembly files in addition to .c/.h files.
-Create cscope database with full path instead of relative path so cscope
 can be used with CSCOPE_DB in any directory.
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches

Stefan