commit 45493dc71e091016f874638e733d0ac1369faa3e parent f8f44a71bd239f2c1d012b98241fcab55b5c73b1 Author: oblique <psyberbits@gmail.com> Date: Sat, 13 Apr 2013 19:53:13 +0300 if GOPATH is not set, set its own one Diffstat:
M | .gitignore | | | 1 | + |
M | Makefile | | | 8 | +++++--- |
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -1 +1,2 @@ /subsync +/godir diff --git a/Makefile b/Makefile @@ -1,8 +1,10 @@ +GOPATH ?= $(PWD)/godir + all: subsync subsync: subsync.go - go get . - go build subsync.go + GOPATH="$(GOPATH)" go get . + GOPATH="$(GOPATH)" go build subsync.go clean: - rm -f subsync + rm -rf subsync godir