-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
86 lines (61 loc) · 1.91 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
DUNE_OPTS?=
DUNE?=opam exec -- dune
build:
$(DUNE) build @install $(DUNE_OPTS)
clean:
$(DUNE) clean
test:
$(DUNE) runtest $(DUNE_OPTS)
test-autopromote:
$(DUNE) runtest $(DUNE_OPTS) --auto-promote
doc:
$(DUNE) build $(DUNE_OPTS) @doc
format:
$(DUNE) build @fmt --auto-promote
check-format:
$(DUNE) build $(DUNE_OPTS) @fmt
genproto:
FORCE_GENPROTO=true $(DUNE) build @genproto --auto-promote
genlib:
@make -s install-go-protobuf-plugin -C src/py
#make genpython -C src/py/lib/ --debug
@make -s genpython -C src/py/lib/
@make -s genpython -C src/py/bindings/
@make -s genrust -C src/rust/lib
# @make -s genrust -C src/rust/lib/ --debug
test-docker-4.14:
docker build . -f dep/Dockerfile.4.14 --network=host
test-docker-5.2:
docker build . -f dep/Dockerfile.5.2 --network=host
build-dev:
$(DUNE) build @install @runtest $(DUNE_OPTS) --workspace=dune-workspace.dev
pull-rust-twine:
git subtree pull --prefix src/rust/lib/twine/ twine-origin main
build-python:
make -C src/py build
publish-python:
make -C src/py publish
list-python-artifacts:
make -C src/py list-artifacts
lint:
$(DUNE) build @lint --auto-promote
WATCH?= @check @runtest
watch:
$(DUNE) build $(DUNE_OPTS) -w $(WATCH)
## handle vendored deps
update-submodules:
git submodule update --init
opam-pin-submodules: update-submodules
opam-install-deps: update-submodules
opam install . --deps-only
opam-install-test-deps: update-submodules
opam install . --deps-only -t
bump-api-version:
@v="$(shell expr $$(cat src/core/API_TYPES_VERSION) + 1)"; \
echo "bumping version to $$v"; \
echo $$v > src/core/API_TYPES_VERSION; \
echo "let version = \"v$$v"\" > src/core/version_.ml; \
echo "api_types_version = 'v$$v'" > src/py/api_types_version.py; \
sed "s/VERSION = \"0.[0-9]*\"/VERSION = \"0.$$v\"/" -i src/py/setup.py; \
sed "s/(version 0.[0-9]*/(version 0.$$v/" -i dune-project; \
sed "s/version: \"0.[0-9]*/version: \"0.$$v/" -i *.opam