mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Added support for cscope (similar to etags) in the makefile
git-svn-id: file:///svn/tokudb@3636 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
0c34376208
commit
f5c013274e
1 changed files with 10 additions and 0 deletions
10
Makefile
10
Makefile
|
@ -7,6 +7,15 @@ TAGS: */*.c */*.h
|
|||
SRCDIRS = newbrt src cxx utils db-benchmark-test db-benchmark-test-cxx
|
||||
BUILDDIRS = $(SRCDIRS) man/texi
|
||||
|
||||
CSCOPE_SRCDIRS=$(SRCDIRS) buildheader include
|
||||
CSCOPE_DIRS =$(shell find $(CSCOPE_SRCDIRS) -type d '(' -path '*/.*' -prune -o -print ')')
|
||||
CSCOPE_FILES=$(shell find $(CSCOPE_DIRS) -maxdepth 1 -type f -name "*.[ch]")
|
||||
cscope.files: $(CSCOPE_DIRS)
|
||||
@echo "$(CSCOPE_FILES)" | tr " " "\n" > $@ # Very long command line quieted.
|
||||
|
||||
cscope.out: cscope.files $(CSCOPE_FILES)
|
||||
cscobe -b
|
||||
|
||||
src.dir: newbrt.dir
|
||||
cxx.dir: src.dir
|
||||
db-benchmark-test.dir: src.dir
|
||||
|
@ -37,6 +46,7 @@ foo:
|
|||
clean:
|
||||
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k clean); done
|
||||
rm -rf lib/*.so lib/*.a
|
||||
rm -rf cscope.files cscope.out
|
||||
|
||||
install:
|
||||
./install.bash
|
||||
|
|
Loading…
Add table
Reference in a new issue