-
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.
Makefile improvements: add "gox", "clean", removed "generate"
- Removed unused "make generate" target - Added back "make gox" for parallel multi platform builds - Added "make clean"
- Loading branch information
1 parent
53dc0d1
commit b79cccc
Showing
2 changed files
with
11 additions
and
6 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
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
all: generate build | ||
all: test build | ||
|
||
generate: | ||
go generate ./... | ||
|
||
test: generate | ||
test: | ||
go vet ./... | ||
go test ./... | ||
|
||
gox: | ||
go get github.com/mitchellh/gox | ||
gox ${LDFLAGS} -parallel=4 -output="./bin/apitest_{{.OS}}_{{.Arch}}" | ||
|
||
clean: | ||
rm -rfv ./apitest ./bin/* | ||
|
||
build: | ||
go build | ||
|
||
.PHONY: all generate test build | ||
.PHONY: all test gox build clean |