allow the user to control the GOPATH

This commit is contained in:
Sridhar Ratnakumar 2013-01-07 12:56:25 -08:00
parent 0449e85ca5
commit de037b033d
3 changed files with 2 additions and 9 deletions

View File

@ -1,13 +1,7 @@
default: test 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 test: *.go
GOPATH=`pwd`/.go go test -v go test -v
fmt: fmt:
go fmt . go fmt .

View File

@ -17,7 +17,6 @@ for line := range t.Lines {
To build and test the package, To build and test the package,
make setup
make test make test
To build the command-line program `gotail`, To build the command-line program `gotail`,

View File

@ -1,4 +1,4 @@
default: gotail default: gotail
gotail: *.go ../../*.go gotail: *.go ../../*.go
GOPATH=`pwd`/../../.go go build go build