-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
22 lines (15 loc) · 857 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: test bench
build: clean format test master
format:
for path in $$(ls -d *.cabal); do cabal-fmt --no-tabular -c $$path || cabal-fmt --no-tabular -i $$path; done
ormolu -ci $$(find . -name "*.hs" -not -path "./*.stack-work/*" -not -path "./dist/*" -not -path "./dist-newstyle/*" -not -path "./.git/*")
test:
cabal test --builddir dist/test --enable-tests --disable-optimisation --test-show-details always -j +RTS -A128m -n2m -N -RTS
master:
cabal build --builddir dist/master --enable-tests --enable-benchmarks -j +RTS -A128m -n2m -N -RTS --ghc-options="-Werror -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -Wunused-packages -Wno-name-shadowing"
bench:
cabal bench --builddir dist/bench -j +RTS -A128m -n2m -N -RTS
docs:
cabal haddock --enable-documentation --builddir dist/docs
clean:
rm -rf dist