From 377601f96fa5b1467ce7e66afb91fed2a2d46955 Mon Sep 17 00:00:00 2001 From: Laurent Dufour Date: Thu, 25 Feb 2016 16:25:00 +0300 Subject: [PATCH] build: introduce etags target The tags target should only create tag file using ctags. For those who like to run emacs, the new target etags is generating the TAGS file. Cc: Dmitry Safonov Cc: Cyrill Gorcunov Cc: Pavel Emelyanov Signed-off-by: Laurent Dufour Acked-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c994f011f..61b3d1d1f 100644 --- a/Makefile +++ b/Makefile @@ -176,9 +176,15 @@ tags: $(call msg-gen, $@) $(Q) $(RM) tags $(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs $(CTAGS) -a - $(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs $(ETAGS) -a PHONY += tags +etags: + $(call msg-gen, $@) + $(Q) $(RM) TAGS + $(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs $(ETAGS) -a +PHONY += etags + + cscope: $(call msg-gen, $@) $(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' ! -type l -print > cscope.files @@ -218,6 +224,7 @@ help: @echo ' dist - Create a source tarball' @echo ' clean - Clean everything' @echo ' tags - Generate tags file (ctags)' + @echo ' etags - Generate TAGS file (etags)' @echo ' cscope - Generate cscope database' @echo ' rebuild - Force-rebuild of [*] targets' @echo ' test - Run zdtm test-suite'