-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 532 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 532 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BINARY_NAME=obsidian-cli
build-all:
GOOS=darwin GOARCH=amd64 go build -o bin/darwin/${BINARY_NAME}
GOOS=linux GOARCH=amd64 go build -o bin/linux/${BINARY_NAME}
GOOS=windows GOARCH=amd64 go build -o bin/windows/${BINARY_NAME}.exe
clean-all:
go clean
rm bin/darwin/${BINARY_NAME}
rm bin/linux/${BINARY_NAME}
rm bin/windows/${BINARY_NAME}.exe
test:
go test ./...
test-coverage:
go test ./... -coverprofile=coverage.out
update-usage-image:
freeze --execute "go run main.go --help" --theme dracula --output docs/usage.png