-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (16 loc) · 694 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: all build warnings test test_only doc stats
all: build test doc stats
build:
cabal build --enable-tests all
warnings:
cabal build --enable-tests --ghc-options="-fforce-recomp" all
test:
cabal test --test-show-details=direct
test_only:
cabal test --test-show-details=direct --test-options='--match="$(pattern)"'
doc:
cabal haddock --haddock-hyperlinked-source --haddock-html-location='https://hackage.haskell.org/package/$$pkg-$$version/docs'
stats:
find lib -name '*.hs' -not -path "./dist-newstyle/*" | sort | xargs wc -l
find test -name '*.hs' -not -path "./dist-newstyle/*" | sort | xargs wc -l
find -name '*.hs' -not -path "./dist-newstyle/*" | xargs wc -l | tail -1