Module: kamailio Branch: master Commit: 35c846b1e8dc7075b0cee196a430dd1b09a87446 URL: https://github.com/kamailio/kamailio/commit/35c846b1e8dc7075b0cee196a430dd1b...
Author: James Aimonetti james.aimonetti@gmail.com Committer: James Aimonetti james.aimonetti@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/35c846b1e8dc7075b0cee196a430dd1b... Patch: https://github.com/kamailio/kamailio/commit/35c846b1e8dc7075b0cee196a430dd1b...
---
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