From de037b033d3f1ae1c39cd67b817c417df189577a Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 7 Jan 2013 12:56:25 -0800 Subject: [PATCH] allow the user to control the GOPATH --- Makefile | 8 +------- README.md | 1 - cmd/gotail/Makefile | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 0009051..86a4913 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,7 @@ default: test -setup: - GOPATH=`pwd`/.go go get -d -v . - GOPATH=`pwd`/.go go test -v -i - rm -f `pwd`/.go/src/tail - ln -sf `pwd` `pwd`/.go/src/tail - test: *.go - GOPATH=`pwd`/.go go test -v + go test -v fmt: go fmt . diff --git a/README.md b/README.md index d2246d6..dd53a6e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ for line := range t.Lines { To build and test the package, - make setup make test To build the command-line program `gotail`, diff --git a/cmd/gotail/Makefile b/cmd/gotail/Makefile index 54cda66..6b5a2d9 100644 --- a/cmd/gotail/Makefile +++ b/cmd/gotail/Makefile @@ -1,4 +1,4 @@ default: gotail gotail: *.go ../../*.go - GOPATH=`pwd`/../../.go go build + go build