Skip to content

Commit

Permalink
Merge pull request kamailio#2192 from jamesaimonetti/emacs-compat
Browse files Browse the repository at this point in the history
Makefile: include flag to generate Emacs-compatible TAGS file
  • Loading branch information
miconda authored Jan 8, 2020
2 parents e656ed7 + 35c846b commit 754d57f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ endif
endif

MKTAGS?=ctags
EMACS_COMPAT=
ifneq (INSIDE_EMACS,)
EMACS_COMPAT=-e
endif

# forward all named targets
%:
Expand All @@ -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
Expand Down

0 comments on commit 754d57f

Please sign in to comment.