switch from hothasktags to hasktags
authorJoey Hess <joeyh@joeyh.name>
Thu, 24 Mar 2022 17:07:49 +0000 (13:07 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 24 Mar 2022 17:29:40 +0000 (13:29 -0400)
hothasktags was removed from Debian. And in the meantime hasktags
improved so it works well in the source tree.

Also make dev update tags.

Sponsored-by: Jack Hill on Patreon
Makefile

index b7ebe03db5315923fe6ae3489d6fac422c559d78..73dffe3847f1c8c6858ce13e5ab1a91d3c873bef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ dev:
                --enable-executable-dynamic --enable-profiling
        mkdir -p tmp
        touch tmp/configure-stamp
-       $(MAKE) git-annex
+       $(MAKE) git-annex tags
 
 git-annex: tmp/configure-stamp
        $(BUILDER) build $(BUILDERCOMMONOPTIONS) $(BUILDEROPTIONS)
@@ -110,19 +110,8 @@ test: git-annex git-annex-shell
 retest: git-annex
        ./git-annex test --rerun-update --rerun-filter failures
 
-# tags file for vim
 tags:
-       @$(MAKE) --quiet hothasktags HOTHASKTAGS_OPT= 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 . -c || true
 
 mans: Build/MakeMans
        ./Build/MakeMans
@@ -148,7 +137,7 @@ docs: mans
 clean:
        if [ "$(BUILDER)" != ./Setup ] && [ "$(BUILDER)" != cabal ]; then $(BUILDER) clean; fi
        rm -rf tmp dist dist-newstyle git-annex $(mans) configure  *.tix .hpc \
-               doc/.ikiwiki html dist tags TAGS Build/SysConfig Build/Version \
+               doc/.ikiwiki html dist tags Build/SysConfig Build/Version \
                Setup Build/InstallDesktopFile Build/Standalone \
                Build/DistributionUpdate Build/BuildVersion Build/MakeMans \
                git-annex-shell git-union-merge .tasty-rerun-log