Commit a5c7177a authored by Yoni Fogel's avatar Yoni Fogel

Update handlerton makefile to support TAGS/cscope

git-svn-id: file:///svn/mysql/tokudb-engine/src@14233 c7de825b-a66e-492c-adef-691d508d4ae1
parent f6f474a7
......@@ -62,3 +62,23 @@ clean:
install: $(TARGET)
cp $(TARGET) $(MYSQL_LIBDIR)/libtokudb_engine.so
tags: TAGS cscope.out;
TAGS: $(TOKUDB)/*/*.[ch] $(TOKUDB)/*/*/*.[ch] $(TOKUDB)/*/*/*/*.[ch] *.cc *.h
rm -f `find $(TOKUDB)/ -type f -name TAGS` #Delete all other tag files
etags $(TOKUDB)/*/*.[ch] $(TOKUDB)/*/*/*.[ch] $(TOKUDB)/*/*/*/*.[ch] *.cc *.h
cscope.files: $(TOKUDB)/*/*.[ch] $(TOKUDB)/*/*/*.[ch] $(TOKUDB)/*/*/*/*.[ch] *.cc *.h
(echo $(TOKUDB)/*/*.[ch] $(TOKUDB)/*/*/*.[ch] $(TOKUDB)/*/*/*/*.[ch] *.cc *.h | tr " " "\n") > $@
ifneq ($(CYGWIN),)
CSCOPE=mlcscope
else
CSCOPE=cscope
endif
cscope.out: cscope.files $(TOKUDB)/*/*.[ch] $(TOKUDB)/*/*/*.[ch] $(TOKUDB)/*/*/*/*.[ch] *.cc *.h
$(CSCOPE) -qb
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment