-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
106 lines (91 loc) · 1.66 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
.PHONY: format
format:
cabal-fmt -i graphql-parser.cabal
find src test bench \
-type f \( -name "*.hs" -o -name "*.hs-boot" \) | \
xargs ormolu -ie
PROJECT ?= cabal.project
CABAL = cabal --project=$(PROJECT)
.PHONY: freeze
freeze:
$(CABAL) freeze \
--enable-tests \
--enable-benchmarks
.PHONY: configure
configure:
$(CABAL) configure \
--enable-tests \
--enable-benchmarks
.PHONY: update
update:
$(CABAL) update
.PHONY: build-deps
build-deps:
$(CABAL) build \
--only-dependencies \
--enable-tests \
--enable-benchmarks \
all
.PHONY: build
build:
$(CABAL) build \
--enable-tests \
--enable-benchmarks \
graphql-parser
.PHONY: build-all
build-all:
$(CABAL) build \
--enable-tests \
--enable-benchmarks \
all
.PHONY: test-all
test-all:
$(CABAL) test \
--enable-tests \
--enable-benchmarks \
all
.PHONY: bench-all
bench-all:
$(CABAL) bench \
--enable-tests \
--enable-benchmarks \
all
.PHONY: repl
repl:
$(CABAL) repl \
--repl-option='-fobject-code' \
--repl-option='-O0' \
graphql-parser
.PHONY: ghcid
ghcid:
ghcid --command "\
$(CABAL) repl \
--repl-option='-fobject-code' \
--repl-option='-O0' \
graphql-parser \
"
.PHONY: ghcid-test
ghcid-test:
ghcid \
--command "\
$(CABAL) repl \
--repl-option '-fobject-code' \
--repl-option '-O0' \
graphql-parser-test \
" \
--test ":main"
.PHONY: ghcid-bench
ghcid-bench:
ghcid \
--command "\
$(CABAL) repl \
--repl-option '-fobject-code' \
--repl-option '-O0' \
graphql-parser-bench \
"
.PHONY: lint
lint:
hlint src/
.PHONY: lint-all
lint-all:
hlint src/ test/ bench/