forked from moby/vpnkit
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 930 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (30 loc) · 930 Bytes
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
build: vpnkit.exe
.PHONY: vpnkit.exe
vpnkit.exe:
opam exec -- dune build --profile release @install
.PHONY: ocaml
ocaml:
opam switch create ./ ocaml-base-compiler.4.14.3 --no-install
opam repo add archive-without-constraint git+https://github.com/tarides/moby-vpnkit-opam-repository-archive#remove-dune-upper-constraint
opam pin add vpnkit . --kind=path --no-action
.PHONY: depends
depends:
opam install vpnkit --deps-only --with-test
.PHONY: test
test:
opam exec -- dune build @runtest @e2e
deps.csv:
opam list \
--installed \
--required-by=vpnkit \
--recursive \
--columns name,package,license: \
--separator=, \
--nobuild \
--color=never \
> $@
licenses.json: deps.csv
opam exec -- dune exec ./scripts/licenses.exe -- -out $@ -in $?
vpnkit.tgz:
opam exec -- dune build --profile release @install
opam exec -- dune exec ./scripts/mac_package.exe -- -out $@ -in _build/install/default/bin/vpnkit