Skip to contentSkip to conversation

Makefile: Minor cscope fixups

PATCH Superseded Alexandre Raymond 2 participants 2 messages Jul 20, 2011 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Minor cscope fixups

-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..4273b6f 100644
@@ -254,7 +254,7 @@ TAGS:
 
 cscope:
 	rm -f ./cscope.*
-	find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
+	find $$PWD -name "*.[chsS]" -print | sed 's,^\./,,' > ./cscope.files
 	cscope -b
 
 # documentation
Signature · 1 line
1.7.5
#1 lore raw
Quoted 15 lines · Alexandre Raymond
(quoted diff) +0 -2
-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 +0 -0
index b3ffbe2..4273b6f 100644
@@ -254,7 +254,7 @@ TAGS:
 
Quoted 4 lines

 cscope:
       rm -f ./cscope.*
-       find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
+       find $$PWD -name "*.[chsS]" -print | sed 's,^\./,,' > ./cscope.files

Please use $$SRC_PATH instead.

Quoted 8 lines

       cscope -b

 # documentation
--
1.7.5