[sr-dev] git:master:754d57f9: Merge pull request #2192 from jamesaimonetti/emacs-compat

GitHub noreply at github.com
Wed Jan 8 09:42:56 CET 2020


Module: kamailio
Branch: master
Commit: 754d57f9b3f57e7e27f5642fb9a22e368534b1dc
URL: https://github.com/kamailio/kamailio/commit/754d57f9b3f57e7e27f5642fb9a22e368534b1dc

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at 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/754d57f9b3f57e7e27f5642fb9a22e368534b1dc.diff
Patch: https://github.com/kamailio/kamailio/commit/754d57f9b3f57e7e27f5642fb9a22e368534b1dc.patch

---

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




More information about the sr-dev mailing list