[CRIU] [PATCH] build: introduce etags target

Laurent Dufour ldufour at linux.vnet.ibm.com
Thu Feb 25 05:25:14 PST 2016


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 <dsafonov at virtuozzo.com>
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Cc: Pavel Emelyanov <xemul at virtuozzo.com>
Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 99d40eedf04d..8bfb39e977c9 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'
-- 
1.9.1



More information about the CRIU mailing list