-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
42 lines (35 loc) · 1.22 KB
/
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
TEMPORALVERSION=`git describe --tags`
# Build pay binary
pay:
@make cli
# Build pay binary
.PHONY: cli
cli:
@echo "=================== building Temporal CLI ==================="
rm -f pay
go build -ldflags "-X main.Version=$(TEMPORALVERSION)" ./cmd/pay
@echo "=================== done ==================="
# Rebuild vendored dependencies
.PHONY: vendor
vendor:
@echo "=================== generating dependencies ==================="
GO111MODULE=on go mod vendor
@echo "=================== done ==================="
# Rebuild generate code
COUNTERFEITER=go run github.com/maxbrunsfeld/counterfeiter/v6
.PHONY: gen
gen:
@echo "=================== regenerating code ==================="
$(COUNTERFEITER) -o ./mocks/bch.mock.go \
github.com/gcash/bchd/bchrpc/pb.BchrpcClient
@echo "=================== done ==================="
# Build CLI binary release
.PHONY: release-cli
release-cli:
@echo "=================== cross-compiling CLI ==================="
@bash .scripts/cli.sh
@echo "=================== done ==================="
.PHONY: docker-build
docker-build:
docker build --build-arg VERSION=$(TEMPORALVERSION) -t pay .
rm -rf vendor