forked from Taeradan/hahp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 1.05 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
SMALLCHECK_DEPTH:=5
QUICKCHECK_TESTS:=20000
# a remplacer par la découverte auto du nombre de coeurs
NPROCS:=8
EXECUTABLE:=.stack-work/install/x86_64-linux-nix/lts-8.2/8.0.2/bin/hahp-example +RTS -lf -N2 -l
run: build
date
$(EXECUTABLE) | tee out.md
build:
stack build
pdf: run
pandoc out.md -o out.pdf -V geometry:a4paper -V geometry:margin=2cm
date
test:
@echo "--------------------------------------------------------------------"
@#stack test || true
@#stack test --test-arguments "--hide-successes" || true
@stack test --test-arguments "-j$(NPROCS) --smallcheck-depth $(SMALLCHECK_DEPTH) --quickcheck-tests $(QUICKCHECK_TESTS) --hide-successes" || true
@date
#---- Improvement
hlint:
hlint -r src hahp-example tests
profile: run
threadscope hahp-example.eventlog
stylish-haskell:
find src -name "*.hs" -exec stylish-haskell -c stylish-haskell.yaml -i {} \;
#---- Documentation
doc: sourcegraph haddock
.PHONY: sourcegraph haddock
haddock:
cabal haddock
sourcegraph:
docker run -v $$(pwd):/src --rm taeradan/haskell-sourcegraph hahp.cabal