From 8ef328ee6a83e1b990a9b236e049bb2b4b56eee6 Mon Sep 17 00:00:00 2001 From: Jim Paton Date: Wed, 5 Jun 2013 10:37:38 -0700 Subject: [PATCH] ctags and cscope support to Makefile Summary: Added a target to Makefile called 'tags' that runs ctags and cscope on all *.cc and *.h file Test Plan: Run 'make tags'. Then start vim and do :set tags=./tags :cs add cscope.out These commands should give you no error messages. You should then be able to access cscope db and ctags as normal in vim. Reviewers: dhruba Differential Revision: https://reviews.facebook.net/D11103 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index dd8b4e8700..967393605e 100644 --- a/Makefile +++ b/Makefile @@ -262,6 +262,11 @@ sst_dump: tools/sst_dump.o $(LIBOBJECTS) ldb: tools/ldb.o $(LIBOBJECTS) $(CXX) tools/ldb.o $(LIBOBJECTS) $(EXEC_LDFLAGS) -o $@ $(LDFLAGS) +.PHONY: tags +tags: + ctags `find . -name '*.cc'` `find . -name '*.h'` + cscope -b `find . -name '*.cc'` `find . -name '*.h'` + ifeq ($(PLATFORM), IOS) # For iOS, create universal object files to be used on both the simulator and # a device.