forked from RoboCup-SSL/ssl-vision-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 743 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 743 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
38
39
CMDS = ssl-vision-client ssl-vision-cli
DOCKER_TARGETS = $(addprefix docker-, $(CMDS))
.PHONY: all docker frontend install test run proto $(DOCKER_TARGETS)
all: install docker
docker: $(DOCKER_TARGETS)
$(DOCKER_TARGETS): docker-%:
docker build -f ./cmd/$*/Dockerfile -t $*:latest .
.frontend: $(shell find frontend/ -type f -not -path "frontend/node_modules/*")
cd frontend && \
pnpm install && \
pnpm run build && \
touch ../.frontend
frontend: .frontend
install: frontend
go install -v ./...
test: frontend
go test ./...
run: frontend
go run ./cmd/$(word 1,$(CMDS))
proto:
buf generate
update-backend:
go get -v -u all
update-frontend:
cd frontend && \
pnpm update --save
update: update-backend update-frontend proto