-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile: make dist, make test, make build
- Loading branch information
1 parent
5ddf348
commit 38252cc
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.PHONY: all build dist test install | ||
|
||
build: | ||
@mkdir -p ./bin && rm -f ./bin/* | ||
go build -o ./bin/yaml ./cmd/yaml | ||
|
||
dist: | ||
@mkdir -p ./bin && rm -f ./bin/* | ||
GOOS=darwin GOARCH=amd64 go build -o ./bin/yaml-darwin64 ./cmd/yaml | ||
GOOS=linux GOARCH=amd64 go build -o ./bin/yaml-linux64 ./cmd/yaml | ||
GOOS=linux GOARCH=386 go build -o ./bin/yaml-linux386 ./cmd/yaml | ||
GOOS=windows GOARCH=amd64 go build -o ./bin/yaml-windows64.exe ./cmd/yaml | ||
GOOS=windows GOARCH=386 go build -o ./bin/yaml-windows386.exe ./cmd/yaml | ||
|
||
test: | ||
go test ./... | ||
|
||
install: | ||
go install ./cmd/sup |