forked from zeropsio/zcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 789 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
## help show this help
.PHONY: help
define helpMessage
possible values:
test
lint
build-for-windows-amd
build-for-linux-amd
build-for-darwin-arm
endef
export helpMessage
help:
@echo "$$helpMessage"
test:
go test -v ./cmd/... ./src/...
lint:
GOOS=darwin GOARCH=arm64 gomodrun golangci-lint run ./cmd/... ./src/... --verbose
GOOS=linux GOARCH=amd64 gomodrun golangci-lint run ./cmd/... ./src/... --verbose
GOOS=windows GOARCH=amd64 gomodrun golangci-lint run ./cmd/... ./src/... --verbose
build-for-windows-amd:
GOOS=windows GOARCH=amd64 go build -o bin/zcli.exe cmd/zcli/main.go
build-for-linux-amd:
GOOS=linux GOARCH=amd64 go build -o bin/zcli cmd/zcli/main.go
build-for-darwin-arm:
GOOS=darwin GOARCH=arm64 go build -o bin/zcli cmd/zcli/main.go