-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
34 lines (26 loc) · 1.04 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
.PHONY: build-server build-client build-all-server build-all-client proto proto-lint build build-all
build-server:
@echo "Building arkd binary..."
@bash ./server/scripts/build
build-client:
@echo "Building ark binary..."
@bash ./client/scripts/build
build-all-server:
@echo "Building arkd binary for all archs..."
@bash ./server/scripts/build-all
build-all-client:
@echo "Building ark binary for all archs..."
@bash ./client/scripts/build-all
build-wasm:
@echo "Building wasm..."
@$(MAKE) -C pkg/client-sdk build-wasm
build: build-server build-client build-wasm
build-all: build-all-server build-all-client build-wasm
proto: proto-lint
@echo "Compiling stubs..."
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf generate buf.build/vulpemventures/ocean
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf generate
proto-lint:
@echo "Linting protos..."
@docker build -q -t buf -f buf.Dockerfile . &> /dev/null
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf lint