Browse code

Merge pull request #2192 from jamesaimonetti/emacs-compat

Makefile: include flag to generate Emacs-compatible TAGS file

Daniel-Constantin Mierla authored on 08/01/2020 08:42:49
Showing 1 changed files
... ...
@@ -24,6 +24,10 @@ endif
24 24
 endif
25 25
 
26 26
 MKTAGS?=ctags
27
+EMACS_COMPAT=
28
+ifneq (INSIDE_EMACS,)
29
+EMACS_COMPAT=-e
30
+endif
27 31
 
28 32
 # forward all named targets
29 33
 %:
... ...
@@ -41,7 +45,7 @@ install:
41 41
 .PHONY: TAGS
42 42
 .PHONY: tags
43 43
 TAGS tags:
44
-	$(MKTAGS) --exclude="misc/*" --exclude="test/*" -R .
44
+	$(MKTAGS) $(EMACS_COMPAT) --exclude="misc/*" --exclude="test/*" -R .
45 45
 
46 46
 # clean everything generated - shortcut on maintainer-clean
47 47
 .PHONY: pure