Skip to content

Commit 42f048f

Browse files
committed
Add makefile to drive the most common commands.
just type make, make clean, make test no need to remember the internal commands
1 parent 471e284 commit 42f048f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
SHELL = /bin/bash
2+
3+
config:
4+
./scripts/ninja.js config
5+
6+
build: config
7+
dune build
8+
./scripts/ninja.js build
9+
10+
watch: config
11+
dune build -w
12+
13+
dce: build
14+
opam exec reanalyze.exe -- -dce-cmt _build
15+
16+
test: build
17+
npm test
18+
19+
clean:
20+
dune clean
21+
./scripts/ninja.js clean
22+
23+
24+
.DEFAULT_GOAL := build
25+
26+
.PHONY: config build test

0 commit comments

Comments
 (0)