gx: go get github.com/whyrusleeping/gx go get github.com/whyrusleeping/gx-godeps:gx gx --verboseinstall--global gx-go rewritepublish: gx-go rewrite --undo
SUPPORTED_OS= windows linux darwin freebsd openbsd netbsdSUPPORTED_ARCH= 386 arm amd64p32 arm64 amd64XBUILD_TARGETS=$(foreach os,$(SUPPORTED_OS),$(foreacharch,$(SUPPORTED_ARCH),test-xbuild-$(os)/$(arch)))$(XBUILD_TARGETS):PLATFORM = $(subst /,,$(patsubst test-xbuild-%,%,$@))$(XBUILD_TARGETS):GOOS = $(word 1,$(PLATFORM))$(XBUILD_TARGETS):GOARCH = $(word 2,$(PLATFORM))$(XBUILD_TARGETS):@if GOOS=$(GOOS)GOARCH=$(GOARCH) go version >/dev/null 2>&1 ;then\echo"building $(GOOS)/$(GOARCH)";\GOOS=$(GOOS)GOARCH=$(GOARCH) go build;\fitest-xbuild:$(XBUILD_TARGETS)