1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

Add rule to make (c)tags file

Also fix (e)TAGS rule to work when srcdir == builddir and
Remove the tag files during clean.
This commit is contained in:
Jonas Fonseca 2007-08-10 10:26:14 +02:00 committed by Witold Filipczyk
parent 29517f7db7
commit 5d25c83139

View File

@ -47,15 +47,21 @@ elinks: $(LIB_O_NAME) vernum.o
# directories, one doesn't have to remember which of those build
# directories has the most recent TAGS.
TAGS:
cd $(srcdir) \
cd $(firstword $(srcdir) .) \
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
| etags --regex='{c}/\(?:static \)?INIT_LIST_OF([^,]*,[ \t]*\([[:alnum:]_]+\))/\1/' \
--regex='{c}/struct_hierbox_browser(\n[ \t]*\([[:alnum:]_]+\),/\1/m' \
--regex='{c}/^ACTION_(\([[:alnum:]_]+\),[^,]*,[ \t]*\([[:alnum:]_]+\),/ACT_\1_\2/' \
--language=c -
.PHONY: TAGS
tags:
cd $(firstword $(srcdir) .) \
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
| ctags -L -
.PHONY: TAGS tags
PROGS = elinks
CLEAN = vernum.o
CLEAN = vernum.o TAGS tags
include $(top_srcdir)/Makefile.lib