Patchwork Makefile: Minor cscope fixups

login
register
mail settings
Submitter Alexandre Raymond
Date July 20, 2011, 3:41 a.m.
Message ID <1311133315-978-1-git-send-email-cerbere@gmail.com>
Download mbox | patch
Permalink /patch/105574/
State New
Headers show

Comments

Alexandre Raymond - July 20, 2011, 3:41 a.m.
-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(-)
Blue Swirl - July 20, 2011, 4:56 p.m.
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
>
>
>

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