Module: check_mk
Branch: master
Commit: f308cad001e0aed31a475d53dd7f4dd233932de7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f308cad001e0ae…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Feb 2 09:17:24 2017 +0100
Fixed GTAGS target.
Change-Id: I22caaa4f5757b417b52a9df1be0d60345157f919
---
.gitignore | 3 +++
Makefile | 6 +++++-
gtags.conf | 3 +++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 5ab6e0f..04f1bd9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,9 @@
.directory
.metadata
.ropeproject
+GPATH
+GRTAGS
+GTAGS
RemoteSystemsTempFiles
aclocal.m4
api
diff --git a/Makefile b/Makefile
index 1932b8f..5fd9423 100644
--- a/Makefile
+++ b/Makefile
@@ -322,7 +322,11 @@ stamp-h1: config.h.in config.status
./config.status config.h
GTAGS: config.h
- $(MAKE) -C livestatus distclean-tags
+# automake generates "gtags -i ...", but incremental updates seem to be a bit
+# fragile, so let's start from scratch, gtags is quite fast.
+ $(RM) GTAGS GRTAGS GSYMS GPATH
+# Note: Even if we descend into livestatus, gtags is run on the top level (next
+# to configure.ac).
$(MAKE) -C livestatus GTAGS
compile_commands.json: config.h $(FILES_TO_FORMAT)
diff --git a/gtags.conf b/gtags.conf
new file mode 100644
index 0000000..636f776
--- /dev/null
+++ b/gtags.conf
@@ -0,0 +1,3 @@
+default:\
+
:skip=/doc/treasures/,/livestatus/api/,/agents/windows/msibuild/,/enterprise/core/src/livestatus/upstream/,HTML/,HTML.pub/,tags,TAGS,ID,y.tab.c,y.tab.h,gtags.files,cscope.files,cscope.out,cscope.po.out,cscope.in.out,SCCS/,RCS/,CVS/,CVSROOT/,{arch}/,autom4te.cache/,*.orig,*.rej,*.bak,*~,#*#,*.swp,*.tmp,*_flymake.*,*_flymake:\
+
:langmap=c\:.c,yacc\:.y,asm\:.s.S,java\:.java,cpp\:.c++.cc.hh.cpp.cxx.hxx.hpp.C.H.h,php\:.php.php3.phtml: