forked from webrpc/webrpc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
51 lines (41 loc) · 928 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
all:
@echo "*****************************************"
@echo "** WebRPC Dev **"
@echo "*****************************************"
@echo "make <cmd>"
@echo ""
@echo "commands:"
@echo ""
@echo " + Testing:"
@echo " - test"
@echo ""
@echo " + Builds:"
@echo " - build"
@echo " - clean"
@echo " - generate"
@echo ""
@echo " + Dep management:"
@echo " - dep"
@echo " - dep-upgrade-all"
@echo ""
tools:
GO111MODULE=off go get -u github.com/goware/statik
build:
go generate ./gen/...
go build -o ./bin/webrpc-gen ./cmd/webrpc-gen
go generate ./...
build-linux:
GOOS=linux GOARCH=amd64 go build -o linuxbuild/webrpc-gen ./cmd/webrpc-gen
clean:
rm -rf ./bin
install: build
go install ./cmd/webrpc-gen
test: generate
go test -v ./...
generate:
go generate ./...
dep:
@export GO111MODULE=on && go mod tidy
dep-upgrade-all:
@GO111MODULE=on go get -u
@$(MAKE) dep