-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (55 loc) · 1.2 KB
/
Makefile
File metadata and controls
71 lines (55 loc) · 1.2 KB
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
.PHONY: test
# OUNIT_CI=true makes output prettier
# --force makes all tests run
test:
OUNIT_CI=true dune build @runtest --force
.PHONY: integration-tests
integration-tests:
./test/integration_tests/test_all.sloth
.PHONY: train
train:
TEST_DIR=$(PWD)/test dune build @train
.PHONY: describe
describe:
dune describe
.PHONY: repl
repl:
dune exec repl
# opam install utop
.PHONY: utop
utop: build
dune utop lib/
.PHONY: build
build:
dune build --verbose
.PHONY: get
get:
opam install . --yes --deps-only --with-test --with-doc -vv
.PHONY: list-errors
list-errors:
dune exec -- menhir --unused-token COMMENT --list-errors lib/compiler/parser.mly | less
.PHONY: explain
explain: clean
dune exec -- menhir --explain lib/compiler/parser.mly
.PHONY: ci
ci:
dune exec tool/ci.exe
.PHONY: todos
todos:
grep -rnI TODO --exclude-dir='_build/' | fgrep -v ignorethisparticularline
# Detect the string YOLO and fail, unless it also has ignorethisparticularline2
.PHONY: yolos
yolos:
! grep -rnI YOLO --exclude-dir='_build/' | fgrep -v ignorethisparticularline2
.PHONY: format
format:
dune fmt
.PHONY: check-format
check-format:
dune fmt --preview
.PHONY: docs
docs:
db -ensure
.PHONY: clean
clean:
dune clean