-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 765 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 765 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
31
32
33
34
35
36
37
38
39
40
export GO111MODULE=on
export GOFLAGS=-mod=vendor
.PHONY: build
build: vendor version.txt help.txt FORCE
go build -o bopmatic
.PHONY: test
test: build FORCE
go test
unit-tests.xml: FORCE
gotestsum --junitfile unit-tests.xml
vendor: go.mod
go mod download
go mod vendor
version.txt:
git describe --tags > version.txt
truncate -s -1 version.txt
.PHONY: brewversion
brewversion:
# update main.go:BrewVersionSuffix if changing this 'b' value
# update .circleci/config.yml and homebrew-macos/Formula/cli.rb if changing BOPCLIVER
printf '$(BOPCLIVER)b' > version.txt
.PHONY: clean
clean:
rm -rf bopmatic unit-tests.xml
.PHONY: deps
deps:
rm -rf go.mod go.sum vendor
go mod init github.com/bopmatic/cli
GOPROXY=direct go mod tidy
go mod vendor
FORCE: