Makefile: include flag to generate Emacs-compatible TAGS file
@@ -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