[sr-dev] git:master:35c846b1: Makefile: include flag to generate Emacs-compatible TAGS file

James Aimonetti james.aimonetti at gmail.com
Wed Jan 8 09:42:55 CET 2020


Module: kamailio
Branch: master
Commit: 35c846b1e8dc7075b0cee196a430dd1b09a87446
URL: https://github.com/kamailio/kamailio/commit/35c846b1e8dc7075b0cee196a430dd1b09a87446

Author: James Aimonetti <james.aimonetti at gmail.com>
Committer: James Aimonetti <james.aimonetti at gmail.com>
Date: 2020-01-07T23:57:13Z

Makefile: include flag to generate Emacs-compatible TAGS file

Emacs exposes an environment variable `INSIDE_EMACS` which can be used
to toggle ctags to generate an Emacs-friendly TAGS file.

---

Modified: Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/35c846b1e8dc7075b0cee196a430dd1b09a87446.diff
Patch: https://github.com/kamailio/kamailio/commit/35c846b1e8dc7075b0cee196a430dd1b09a87446.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