Commit 377601f9 authored by Laurent Dufour's avatar Laurent Dufour Committed by Pavel Emelyanov

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 <dsafonov@virtuozzo.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9cd6f0da
...@@ -176,9 +176,15 @@ tags: ...@@ -176,9 +176,15 @@ tags:
$(call msg-gen, $@) $(call msg-gen, $@)
$(Q) $(RM) tags $(Q) $(RM) tags
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs $(CTAGS) -a $(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs $(CTAGS) -a
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs $(ETAGS) -a
PHONY += tags PHONY += tags
etags:
$(call msg-gen, $@)
$(Q) $(RM) TAGS
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs $(ETAGS) -a
PHONY += etags
cscope: cscope:
$(call msg-gen, $@) $(call msg-gen, $@)
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' ! -type l -print > cscope.files $(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' ! -type l -print > cscope.files
...@@ -218,6 +224,7 @@ help: ...@@ -218,6 +224,7 @@ help:
@echo ' dist - Create a source tarball' @echo ' dist - Create a source tarball'
@echo ' clean - Clean everything' @echo ' clean - Clean everything'
@echo ' tags - Generate tags file (ctags)' @echo ' tags - Generate tags file (ctags)'
@echo ' etags - Generate TAGS file (etags)'
@echo ' cscope - Generate cscope database' @echo ' cscope - Generate cscope database'
@echo ' rebuild - Force-rebuild of [*] targets' @echo ' rebuild - Force-rebuild of [*] targets'
@echo ' test - Run zdtm test-suite' @echo ' test - Run zdtm test-suite'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment