diff mbox

Makefile: Minor cscope fixups

Message ID 1311133315-978-1-git-send-email-cerbere@gmail.com
State New
Headers show

Commit Message

Alexandre Raymond July 20, 2011, 3:41 a.m. UTC
-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.

Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Blue Swirl July 20, 2011, 4:56 p.m. UTC | #1
On Wed, Jul 20, 2011 at 6:41 AM, Alexandre Raymond <cerbere@gmail.com> wrote:
> -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.
>
> Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
> ---
>  Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index b3ffbe2..4273b6f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -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

Please use $$SRC_PATH instead.

>        cscope -b
>
>  # documentation
> --
> 1.7.5
>
>
>
diff mbox

Patch

diff --git a/Makefile b/Makefile
index b3ffbe2..4273b6f 100644
--- a/Makefile
+++ b/Makefile
@@ -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