Last active
April 26, 2016 15:51
-
-
Save saml/2167727a870bc734e07cda2252c5d326 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.PHONY: clean test all | |
all: bin/foo bin/bar | |
bin/%: pkg/**/*.go cmd/%/*.go | |
go build -o $@ ./cmd/$(@F) | |
test: | |
go fmt ./pkg/... ./cmd/... | |
go vet ./pkg/... ./cmd/... | |
golint ./pkg/... | |
golint ./cmd/... | |
go test ./pkg/... ./cmd/... | |
clean: | |
rm -rf bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment