forked from TUM-Dev/gocast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (39 loc) · 784 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
46
47
48
49
50
51
.PHONY: all
all: npm_dependencies go_dependencies bundle
VERSION := $(shell git rev-parse --short origin/HEAD)
.PHONY: npm_dependencies
npm_dependencies:
cd web; \
npm i --no-dev
.PHONY: go_dependencies
go_dependencies:
go get ./...
.PHONY: bundle
bundle:
go build -o main -ldflags="-X 'main.VersionTag=$(VERSION)'" cmd/tumlive/tumlive.go
.PHONY: clean
clean:
rm -fr web/node_modules
.PHONY: install
install:
mv main /bin/tum-live
.PHONY: mocks
mocks:
go generate ./...
.PHONY: run_web
run_web:
cd web; \
npm i --include=dev
.PHONY: run
run:
go run cmd/tumlive/tumlive.go
.PHONY: test
test:
go test -race ./...
.PHONY: lint
lint:
golangci-lint run
.PHONY: protoVoice
protoVoice:
cd voice-service; \
protoc ./subtitles.proto --go-grpc_out=../. --go_out=../.