-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathMakefile
45 lines (31 loc) · 885 Bytes
/
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
CMDS = ssl-game-controller ssl-ref-client
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 && \
npm install && \
npm run build && \
touch ../.frontend
frontend: .frontend
install: frontend
go install -v ./...
test: frontend
go test ./...
run: frontend
go run ./cmd/$(word 1,$(CMDS))
dev:
cd frontend && npm run dev
proto:
tools/generateProto.sh
autoref-tests:
git clone "https://gitlab.com/robocup-small-size/autoref-tests.git" autoref-tests
update-backend:
go get -v -u all
update-frontend:
cd frontend && \
npm update --save
update: update-backend update-frontend proto