Commit d7c461b6 authored by Petr Pudlak's avatar Petr Pudlak

Fix broken TAGS generation

This file is used for development to point to code definitions. Apparently this
has been broken since Februrary [cc40185c]. The improved version fixes the
problem and uses Exuberant Ctags <>. It uses
"etags" instead of "ctags", so Emacs compatibility should be maintained.

The extra suffixes "-osuf" and "hisuf" are used to avoid problems with already
compiled object files.
Signed-off-by: default avatarPetr Pudlak <>
Reviewed-by: default avatarJose A. Lopes <>
parent e5398c3a
......@@ -22,7 +22,7 @@
......@@ -2310,14 +2310,17 @@ $(APIDOC_HS_DIR)/index.html: $(HS_LIBTESTBUILT_SRCS) Makefile
rm -f TAGS
$(GHC) -e ":etags" -v0 \
$(GHC) -e ":etags TAGS_hs" -v0 \
$(filter-out -O -Werror,$(HFLAGS)) \
-osuf tags.o \
-hisuf tags.hi \
-lcurl \
find . -path './lib/*.py' -o -path './scripts/gnt-*' -o \
-path './daemons/ganeti-*' -o -path './tools/*' -o \
-path './qa/*.py' | \
etags -l python -a -
etags --etags-include=TAGS_hs -L -
.PHONY: coverage
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment