Module: kamailio Branch: master Commit: 35c846b1e8dc7075b0cee196a430dd1b09a87446 URL: https://github.com/kamailio/kamailio/commit/35c846b1e8dc7075b0cee196a430dd1b09a87446
Author: James Aimonetti <[email protected]> Committer: James Aimonetti <[email protected]> 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 _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
