-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
54 lines (42 loc) · 1.24 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
.PHONY: build clean install uninstall reinstall test release doc
.DEFAULT_GOAL = build
build:
dune build @install
clean:
dune clean
install:
dune build @install
dune install
uninstall:
dune uninstall
reinstall: uninstall install
test:
dune runtest
release:
opam publish
doc:
dune build @doc
gh-pages: doc
git clone `git config --get remote.origin.url` .gh-pages --reference .
git -C .gh-pages checkout --orphan gh-pages
git -C .gh-pages reset
git -C .gh-pages clean -dxf
cp -r _build/default/_doc/_html/* .gh-pages
git -C .gh-pages add .
git -C .gh-pages config user.email 'docs@ppx_protocol_conv'
git -C .gh-pages commit -m "Update Pages"
git -C .gh-pages push origin gh-pages -f
rm -rf .gh-pages
.PHONY: bench
bench:
dune clean
dune exec drivers/json/bench/bench.exe --profile bench -- -all-values | tee bench.txt
sed -i 's/[┴┬┼│├┤┌┐┘└]/|/g' bench.txt
sed -i 's/[─]/-/g' bench.txt
debug:
dumpast type.ml
_build/default/.ppx/ppx_protocol_conv+ppx_sexp_conv+ppx_driver.runner/ppx.exe type.ml
drivers/json/test/types.ml: force
./_build/default/.ppx/9f9eea5d5804b6e3d527fb158983e793/ppx.exe -pretty type.ml | ocamlformat - --name=b | sed 's/\[@@[^\]*\]//' > drivers/json/test/types.ml
.PHONY: force
force: