Makefile: add weeder target.

This commit is contained in:
John MacFarlane
2022-09-27 18:01:34 -07:00
parent 21bf9ae885
commit b5bf559766
3 changed files with 10 additions and 1 deletions
+4
View File
@@ -10,6 +10,7 @@
!.circleci/**
!.editorconfig
!.gitattributes
!.github/**
!.gitignore
!.hlint.yaml
!.mailmap
@@ -34,6 +35,7 @@
!release.nix
!shell.nix
!stack.yaml
!weeder.dhall
!app/**
!benchmark/**
!citeproc/**
@@ -42,6 +44,8 @@
!linux/**
!macos/**
!man/**
!pandoc-server/**
!pandoc-cli/**
!src/**
!test/**
!tools/**
+5 -1
View File
@@ -13,7 +13,7 @@ BASELINECMD=
else
BASELINECMD=--baseline $(BASELINE)
endif
GHCOPTS=-fdiagnostics-color=always -j4 +RTS -A8m -RTS
GHCOPTS=-fwrite-ide-info -fdiagnostics-color=always -j4 +RTS -A8m -RTS
WEBSITE=../../web/pandoc.org
REVISION?=1
BENCHARGS?=--csv bench_$(TIMESTAMP).csv $(BASELINECMD) --timeout=6 +RTS -T --nonmoving-gc -RTS $(if $(PATTERN),--pattern "$(PATTERN)",)
@@ -92,6 +92,10 @@ coverage: ## code coverage information
open coverage/hpc_index.html
.PHONY: coverage
weeder: ## run weeder to find dead code
weeder
.PHONY: weeder
transitive-deps: ## print transitive dependencies
cabal-plan topo | sort | sed -e 's/-[0-9]\..*//'
.PHONY: transitive-deps
+1
View File
@@ -0,0 +1 @@
{ roots = [ "^Main.main$", "^Paths_.*$" ] , type-class-roots = True }