From 631ef974b6512203ea74d2e1c5a94634692ae0e5 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Mon, 2 Feb 2015 14:15:57 -0600 Subject: [PATCH] Add 'make bootstrap' task --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 83dedd6..7363c62 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ usage: @echo "make dev : Generate development build" @echo "make test : Run tests" @echo "make build : Generate production build for current OS" + @echo "make bootstrap : Install cross-compilation toolchain" @echo "make release : Generate binaries for all supported OSes" @echo "make clean : Remove all build files and reset assets" @echo "make assets : Generate production assets file" @@ -35,6 +36,9 @@ build: assets release: assets gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}" +bootstrap: + gox -build-toolchain + setup: go get github.com/tools/godep godep get github.com/mitchellh/gox