switch from hothasktags to hasktags
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
This commit is contained in:
parent
5a723f4644
commit
fdcb14d475
1 changed files with 3 additions and 14 deletions
17
Makefile
17
Makefile
|
@ -52,7 +52,7 @@ dev:
|
||||||
--enable-executable-dynamic --enable-profiling
|
--enable-executable-dynamic --enable-profiling
|
||||||
mkdir -p tmp
|
mkdir -p tmp
|
||||||
touch tmp/configure-stamp
|
touch tmp/configure-stamp
|
||||||
$(MAKE) git-annex
|
$(MAKE) git-annex tags
|
||||||
|
|
||||||
git-annex: tmp/configure-stamp
|
git-annex: tmp/configure-stamp
|
||||||
$(BUILDER) build $(BUILDERCOMMONOPTIONS) $(BUILDEROPTIONS)
|
$(BUILDER) build $(BUILDERCOMMONOPTIONS) $(BUILDEROPTIONS)
|
||||||
|
@ -110,19 +110,8 @@ test: git-annex git-annex-shell
|
||||||
retest: git-annex
|
retest: git-annex
|
||||||
./git-annex test --rerun-update --rerun-filter failures
|
./git-annex test --rerun-update --rerun-filter failures
|
||||||
|
|
||||||
# tags file for vim
|
|
||||||
tags:
|
tags:
|
||||||
@$(MAKE) --quiet hothasktags HOTHASKTAGS_OPT= TAGFILE=tags
|
hasktags . -c || true
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
mans: Build/MakeMans
|
mans: Build/MakeMans
|
||||||
./Build/MakeMans
|
./Build/MakeMans
|
||||||
|
@ -148,7 +137,7 @@ docs: mans
|
||||||
clean:
|
clean:
|
||||||
if [ "$(BUILDER)" != ./Setup ] && [ "$(BUILDER)" != cabal ]; then $(BUILDER) clean; fi
|
if [ "$(BUILDER)" != ./Setup ] && [ "$(BUILDER)" != cabal ]; then $(BUILDER) clean; fi
|
||||||
rm -rf tmp dist dist-newstyle git-annex $(mans) configure *.tix .hpc \
|
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 \
|
Setup Build/InstallDesktopFile Build/Standalone \
|
||||||
Build/DistributionUpdate Build/BuildVersion Build/MakeMans \
|
Build/DistributionUpdate Build/BuildVersion Build/MakeMans \
|
||||||
git-annex-shell git-union-merge .tasty-rerun-log
|
git-annex-shell git-union-merge .tasty-rerun-log
|
||||||
|
|
Loading…
Reference in a new issue