Skip to content

Commit

Permalink
Makefile improvements: add "gox", "clean", removed "generate"
Browse files Browse the repository at this point in the history
- Removed unused "make generate" target
- Added back "make gox" for parallel multi platform builds
- Added "make clean"
  • Loading branch information
martinrode committed Jun 9, 2020
1 parent 53dc0d1 commit b79cccc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ vendor
/public
tmpl.go
.idea/
/bin/
apitest_report.json
/commands/server/assets/tmpl.go
*.code-workspace
Expand Down
16 changes: 10 additions & 6 deletions Makefile
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

0 comments on commit b79cccc

Please sign in to comment.