Skip to content

Commit

Permalink
switch from hothasktags to hasktags
Browse files Browse the repository at this point in the history
hothasktags was removed from Debian. And in the meantime hasktags
improved so it works well in the source tree.
  • Loading branch information
joeyh committed Mar 24, 2022
1 parent 4f9d7fc commit 66bdad7
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build: Build/SysConfig.hs
ln -sf dist/build/git-repair/git-repair git-repair; \
fi; \
fi
@$(MAKE) tags >/dev/null 2>&1 &
@$(MAKE) tags

Build/SysConfig.hs: Build/TestConfig.hs Build/Configure.hs
if [ "$(BUILDER)" = ./Setup ]; then ghc --make Setup; fi
Expand All @@ -37,22 +37,7 @@ clean:
find . -name \*.o -exec rm {} \;
find . -name \*.hi -exec rm {} \;

# tags file for vim
tags:
@$(MAKE) --quiet hothasktags HOTHASKTAGS_OPT= TAGFILE=tags

# TAGS file for emacs
TAGS:
@$(MAKE) --quiet hothasktags HOTHASKTAGS_OPT=-e TAGFILE=TAGS

# https://github.com/luqui/hothasktags/issues/18
HOTHASKTAGS_ARGS=-XLambdaCase -XPackageImports --cpp

hothasktags:
@if ! cabal exec hothasktags -- $(HOTHASKTAGS_OPT) $(HOTHASKTAGS_ARGS) \
$$(find . | grep -v /.git/ | grep -v /tmp/ | grep -v dist/ | grep -v /doc/ | egrep '\.hs$$') 2>/dev/null \
| sort > $(TAGFILE); then \
echo "** hothasktags failed"; \
fi
hasktags . || true

.PHONY: tags

0 comments on commit 66bdad7

Please sign in to comment.