1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05: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
parent 3b55e9a4b2
commit b3ca6a9e1f

View File

@ -43,15 +43,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