-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (39 loc) · 949 Bytes
/
Makefile
File metadata and controls
50 lines (39 loc) · 949 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
41
42
43
44
45
46
47
48
49
50
.PHONY: help
define helpMessage
possible targets:
- test
- lint
- all
- windows-amd
- linux-amd
- dawrin-amd
- darwin-arm
- showcase
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 #
#########
all: windows-amd linux-amd darwin-amd darwin-arm
windows-amd:
GOOS=windows GOARCH=amd64 tools/build.sh zcli.win.exe
linux-amd:
GOOS=linux GOARCH=amd64 tools/build.sh zcli.linux
darwin-amd:
GOOS=darwin GOARCH=amd64 tools/build.sh zcli.darwin.amd64
darwin-arm:
GOOS=darwin GOARCH=arm64 tools/build.sh zcli.darwin.arm64
#########
# OTHER #
#########
# showcase of ui elements
showcase:
go run src/uxBlock/showcase/main.go