mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -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:
parent
29517f7db7
commit
5d25c83139
12
src/Makefile
12
src/Makefile
@ -47,15 +47,21 @@ elinks: $(LIB_O_NAME) vernum.o
|
|||||||
# directories, one doesn't have to remember which of those build
|
# directories, one doesn't have to remember which of those build
|
||||||
# directories has the most recent TAGS.
|
# directories has the most recent TAGS.
|
||||||
TAGS:
|
TAGS:
|
||||||
cd $(srcdir) \
|
cd $(firstword $(srcdir) .) \
|
||||||
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
|
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
|
||||||
| etags --regex='{c}/\(?:static \)?INIT_LIST_OF([^,]*,[ \t]*\([[:alnum:]_]+\))/\1/' \
|
| etags --regex='{c}/\(?:static \)?INIT_LIST_OF([^,]*,[ \t]*\([[:alnum:]_]+\))/\1/' \
|
||||||
--regex='{c}/struct_hierbox_browser(\n[ \t]*\([[:alnum:]_]+\),/\1/m' \
|
--regex='{c}/struct_hierbox_browser(\n[ \t]*\([[:alnum:]_]+\),/\1/m' \
|
||||||
--regex='{c}/^ACTION_(\([[:alnum:]_]+\),[^,]*,[ \t]*\([[:alnum:]_]+\),/ACT_\1_\2/' \
|
--regex='{c}/^ACTION_(\([[:alnum:]_]+\),[^,]*,[ \t]*\([[:alnum:]_]+\),/ACT_\1_\2/' \
|
||||||
--language=c -
|
--language=c -
|
||||||
.PHONY: TAGS
|
|
||||||
|
tags:
|
||||||
|
cd $(firstword $(srcdir) .) \
|
||||||
|
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
|
||||||
|
| ctags -L -
|
||||||
|
|
||||||
|
.PHONY: TAGS tags
|
||||||
|
|
||||||
PROGS = elinks
|
PROGS = elinks
|
||||||
CLEAN = vernum.o
|
CLEAN = vernum.o TAGS tags
|
||||||
|
|
||||||
include $(top_srcdir)/Makefile.lib
|
include $(top_srcdir)/Makefile.lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user