-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 934 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
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
.PHONY: all bench build clean configure haddock hpc install repl run test
all: install configure build haddock test bench
bench:
cabal bench --jobs
build:
cabal build --jobs
clean:
cabal clean
if test -d .cabal-sandbox; then cabal sandbox delete; fi
if test -d .hpc; then rm -r .hpc; fi
configure:
cabal configure --enable-benchmarks --enable-tests --enable-coverage
haddock:
cabal haddock --hyperlink-source
# dist/doc/html/${packageName}/index.html
hpc:
hpc markup --destdir=tmp dist/hpc/tix/tests/tests.tix
# tmp/hpc_index.html
install:
cabal sandbox init
cabal install --enable-benchmarks --enable-tests --jobs --only-dependencies --reorder-goals
repl:
cabal repl lib:TinyASM
run:
cabal run --jobs TinyASM
test:
rm -f *.tix
cabal test --jobs
cabal check
testvm:
rm -f *.tix
cabal test TestVM --jobs --show-details=always
testparser:
rm -f *.tix
cabal test TestParser --jobs --show-details=always