diff options
author | Denis ChengRq <crquan@gmail.com> | 2008-08-03 21:51:40 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-08-06 16:17:06 -0400 |
commit | 64a99d2a8c3ed5c4e39f3ae1cc682aa8fd3977fc (patch) | |
tree | b36eaea204e2d8b66431497c9a5a1c2ad6125c25 /Makefile | |
parent | 0b0de144333fca335a0111a6f9c59176ad43ba0a (diff) |
kbuild: a better way to generate cscope database change
It's a problem about cscope target of kernel Makefile, and the cscope
plugin of emacs:
1. `make cscope` will generate cscope.files cscope.{in,po,}.out;
2. the cscope plugin expect a cscope.out.{in,po,};
3. the default `cscope -b` would generate cscope.{in,po,}.out;
There are three approach to solve it:
1. modify the cscope C code;
2. modify the cscope emacs plugin lisp code;
3. modify the Makefile;
I have tried to communicate with the cscope upstream, but later I
realize the third approach is most meaningful.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1492,7 +1492,7 @@ quiet_cmd_cscope-file = FILELST cscope.files | |||
1492 | cmd_cscope-file = (echo \-k; echo \-q; $(all-sources)) > cscope.files | 1492 | cmd_cscope-file = (echo \-k; echo \-q; $(all-sources)) > cscope.files |
1493 | 1493 | ||
1494 | quiet_cmd_cscope = MAKE cscope.out | 1494 | quiet_cmd_cscope = MAKE cscope.out |
1495 | cmd_cscope = cscope -b | 1495 | cmd_cscope = cscope -b -f cscope.out |
1496 | 1496 | ||
1497 | cscope: FORCE | 1497 | cscope: FORCE |
1498 | $(call cmd,cscope-file) | 1498 | $(call cmd,cscope-file) |