-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathMakefile
41 lines (28 loc) · 850 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
SHELL = /bin/bash
build-analysis-binary:
rm -f rescript-editor-analysis.exe
dune build
cp _build/install/default/bin/rescript-editor-analysis rescript-editor-analysis.exe
build-tests:
make -C tests build
build-reanalyze:
make -C reanalyze build
build: build-analysis-binary build-reanalyze build-tests
dce: build-analysis-binary
opam exec reanalyze.exe -- -dce-cmt _build -suppress vendor
format:
dune build @fmt --auto-promote
test-analysis-binary: build-analysis-binary
make -C tests test
test-reanalyze: build-analysis-binary
make -C reanalyze test
test: test-analysis-binary test-reanalyze
clean:
rm -f rescript-editor-analysis.exe
dune clean
make -C tests clean
make -C reanalyze clean
checkformat:
dune build @fmt
.DEFAULT_GOAL := build
.PHONY: build-analysis-binary build-reanalyze build-tests dce clean format test