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:
Yoni Fogel 2008-04-24 22:10:13 +00:00
parent 0c34376208
commit f5c013274e

View file

@ -7,6 +7,15 @@ TAGS: */*.c */*.h
SRCDIRS = newbrt src cxx utils db-benchmark-test db-benchmark-test-cxx SRCDIRS = newbrt src cxx utils db-benchmark-test db-benchmark-test-cxx
BUILDDIRS = $(SRCDIRS) man/texi 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 src.dir: newbrt.dir
cxx.dir: src.dir cxx.dir: src.dir
db-benchmark-test.dir: src.dir db-benchmark-test.dir: src.dir
@ -37,6 +46,7 @@ foo:
clean: clean:
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k clean); done for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k clean); done
rm -rf lib/*.so lib/*.a rm -rf lib/*.so lib/*.a
rm -rf cscope.files cscope.out
install: install:
./install.bash ./install.bash