Module: kamailio
Branch: master
Commit: 754d57f9b3f57e7e27f5642fb9a22e368534b1dc
URL:
https://github.com/kamailio/kamailio/commit/754d57f9b3f57e7e27f5642fb9a22e3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-01-08T09:42:49+01:00
Merge pull request #2192 from jamesaimonetti/emacs-compat
Makefile: include flag to generate Emacs-compatible TAGS file
---
Modified: Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/754d57f9b3f57e7e27f5642fb9a22e3…
Patch:
https://github.com/kamailio/kamailio/commit/754d57f9b3f57e7e27f5642fb9a22e3…
---
diff --git a/Makefile b/Makefile
index 6d4abe6e90..ef319fa473 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,10 @@ endif
endif
MKTAGS?=ctags
+EMACS_COMPAT=
+ifneq (INSIDE_EMACS,)
+EMACS_COMPAT=-e
+endif
# forward all named targets
%:
@@ -41,7 +45,7 @@ install:
.PHONY: TAGS
.PHONY: tags
TAGS tags:
- $(MKTAGS) --exclude="misc/*" --exclude="test/*" -R .
+ $(MKTAGS) $(EMACS_COMPAT) --exclude="misc/*" --exclude="test/*" -R
.
# clean everything generated - shortcut on maintainer-clean
.PHONY: pure