-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (59 loc) · 1.55 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.PHONY: all bench build check check-whitespace clean configure exec fast golden haddock hlint hpack install main output repl report run sdist stan stylish test tix update
all: update fast bench
bench:
rm -f helpa-benchmark.tix
cabal new-bench --jobs -f ghcoptions
build:
cabal new-build --jobs --enable-profiling -f ghcoptions
check:
cabal check
check-whitespace:
git check-whitespace
clean:
cabal new-clean
if test -d .cabal-sandbox; then cabal sandbox delete; fi
if test -d .hpc; then rm -r .hpc; fi
if test -d .hie; then rm -r .hie; fi
configure:
rm -f cabal.project.local*
cabal configure --enable-benchmarks --enable-coverage --enable-tests --disable-library-coverage -f ghcoptions
exec:
make tix
cabal new-exec --jobs helpa
fast: main report sdist install
golden:
if test -d .output/golden; then rm -r .output/golden; fi
haddock:
cabal new-haddock
hlint:
./hlint.sh
hpack:
curl -sSL https://github.com/sol/hpack/raw/main/get-hpack.sh | bash
install:
cabal install all --overwrite-policy=always
main:
make stylish configure check build test
output:
if test -d .output; then rm -r .output; fi
repl:
cabal new-repl lib:helpa
report:
make haddock stan hlint
./report.sh
run:
make tix
cabal new-run --jobs helpa
sdist:
cabal sdist
stan:
./stan.sh
mv stan.html docs/reports
stylish:
#curl -sL https://raw.github.com/haskell/stylish-haskell/master/scripts/latest.sh | sh -s "-r -v -i hs"
stylish-haskell -r -v -i hs
test:
cabal new-test --jobs --test-show-details=streaming -f ghcoptions
tix:
rm -f helpa.tix
update:
cabal update