Skip to content

Commit

Permalink
Makefile.mk: only use universal-ctags which is more robust than etags
Browse files Browse the repository at this point in the history
* Check for universal-ctags, make empty TAGS if not present

Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Nov 10, 2024
1 parent 02e503a commit 868bc27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ $>/ChangeLog: $(GITCOMMITDEPS) Makefile.mk | $>/
# ctags --print-language `git ls-tree -r --name-only HEAD`
$>/TAGS: $>/ls-tree.lst $(GITCOMMITDEPS) Makefile.mk
$(QGEN)
$Q etags -o $@ $$(< $<)
$Q ctags --version 2>/dev/null | grep -qE 'Exuberant|Universal' || exit 0 >$@ ; \
ctags -o $@ -L - < $< 2> >(grep -vF 'Warning: ignoring null tag in')

# use sed to compress flood of "Warning: ignoring null tag"
ALL_TARGETS += $>/TAGS
TAGS: $>/TAGS
Expand Down

0 comments on commit 868bc27

Please sign in to comment.