Skip to content

Instantly share code, notes, and snippets.

@Magrath
Last active August 29, 2015 14:16
Show Gist options
  • Save Magrath/d8f6971826994304ac8d to your computer and use it in GitHub Desktop.
Save Magrath/d8f6971826994304ac8d to your computer and use it in GitHub Desktop.
Basic Makefile for Go 1.4 projects
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