-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 790 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 790 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
# This Makefile is meant to be used by people that do not usually work
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.
.PHONY: carrier all test clean
GOBIN = $(shell pwd)/build/bin
GO ?= latest
GPATH = $(shell go env GOPATH)
GORUN = env GO111MODULE=on GOPATH=$(GPATH) GOPROXY=https://goproxy.cn go run
carrier:
$(GORUN) build/ci.go install ./cmd/carrier
@echo "Done building."
@echo "Run \"$(GOBIN)/carrier\" to launch carrier."
carrier-race:
$(GORUN) build/ci.go install ./cmd/carrier --race
@echo "Done building."
@echo "Run \"$(GOBIN)/carrier\" to launch carrier."
all:
$(GORUN) build/ci.go install
test: all
$(GORUN) build/ci.go test
clean:
env GO111MODULE=on go clean -cache
rm -fr build/_workspace/pkg/ $(GOBIN)/*