Last active
August 29, 2015 14:16
-
-
Save Magrath/d8f6971826994304ac8d to your computer and use it in GitHub Desktop.
Basic Makefile for Go 1.4 projects
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
go ?= go | |
build: fmt lint vet | |
$(go) build ./... | |
fmt: | |
$(go) fmt ./... | |
lint: | |
$(go) get github.com/golang/lint/golint | |
golint ./... | |
test: fmt lint vet | |
$(go) test ./... | |
vet: | |
$(go) get golang.org/x/tools/cmd/vet | |
$(go) vet ./... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment