-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
51 lines (38 loc) · 1.42 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
.PHONY: all
all: all.stack-8.10 all.stack-9.0 all.stack-9.2 all.cabal-9.0
.PHONY: all.stack-8.10
all.stack-8.10:
stack --stack-yaml stack-ghc-8.10.yaml build --test --bench
.PHONY: all.stack-9.0
all.stack-9.0:
stack --stack-yaml stack.yaml build --test --bench
.PHONY: all.stack-9.2
all.stack-9.2:
stack --stack-yaml stack-ghc-9.2.yaml build --test --bench
.PHONY: all.cabal-9.0
all.cabal-9.0:
cabal v2-build --jobs --enable-tests --enable-benchmarks all
cabal v2-test --jobs all
.PHONY: build.all
build.all: build.all.stack-8.10 build.all.stack-9.0 build.all.stack-9.2 build.all.cabal-9.0
.PHONY: build.all.stack-8.10
build.all.stack-8.10:
stack --stack-yaml stack-ghc-8.10.yaml build --test --no-run-tests --bench --no-run-benchmarks
.PHONY: build.all.stack-9.0
build.all.stack-9.0:
stack --stack-yaml stack.yaml build --test --no-run-tests --bench --no-run-benchmarks
.PHONY: build.all.stack-9.2
build.all.stack-9.2:
stack --stack-yaml stack-ghc-9.2.yaml build --test --no-run-tests --bench --no-run-benchmarks
.PHONY: build.all.cabal-9.0
build.all.cabal-9.0:
cabal build --jobs --enable-tests --enable-benchmarks all
# format requires fourmolu 0.13.1.0 or later
.PHONY: format
format:
fourmolu --mode inplace $$(git ls-files | grep -E "\.hs$$")
.PHONY: format.check
format.check:
fourmolu --mode check $$(git ls-files | grep -E "\.hs$$")
# Hack https://www.gnu.org/software/make/manual/html_node/Force-Targets.html
FORCE: