btrfs-progs: build: provide etags make target

Provide an 'etags' make target to create tags in the Emacs etags
format, similar to the 'tags' target for VIM's ctags.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Johannes Thumshirn 2019-01-11 11:11:27 +01:00 committed by David Sterba
parent 8addcab0d0
commit a36d331f03
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -59,6 +59,7 @@
/Makefile.inc
/tags
/TAGS
/cscope.out
/cscope.files
/cscope.in.out

View File

@ -44,6 +44,7 @@ $(error Makefile.inc not generated, please configure first)
endif
TAGS_CMD := ctags
ETAGS_CMD := etags
CSCOPE_CMD := cscope -u -b -c -q
include Makefile.extrawarn
@ -602,6 +603,12 @@ tags: FORCE
check/*.[ch] kernel-lib/*.[ch] kernel-shared/*.[ch] \
libbtrfsutil/*.[ch]
etags: FORCE
@echo " [ETAGS] $(ETAGS_CMD)"
$(Q)$(ETAGS_CMD) *.[ch] image/*.[ch] convert/*.[ch] mkfs/*.[ch] \
check/*.[ch] kernel-lib/*.[ch] kernel-shared/*.[ch] \
libbtrfsutil/*.[ch]
cscope: FORCE
@echo " [CSCOPE] $(CSCOPE_CMD)"
$(Q)ls -1 *.[ch] image/*.[ch] convert/*.[ch] mkfs/*.[ch] check/*.[ch] \
@ -638,7 +645,7 @@ clean-gen:
@echo "Cleaning Generated Files"
$(Q)$(RM) -rf -- version.h config.status config.cache config.log \
configure.lineno config.status.lineno Makefile.inc \
Documentation/Makefile tags \
Documentation/Makefile tags TAGS \
cscope.files cscope.out cscope.in.out cscope.po.out \
config.log config.h config.h.in~ aclocal.m4 \
configure autom4te.cache/ config/