allow the user to control the GOPATH
This commit is contained in:
parent
0449e85ca5
commit
de037b033d
8
Makefile
8
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 .
|
||||
|
|
|
@ -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`,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
default: gotail
|
||||
|
||||
gotail: *.go ../../*.go
|
||||
GOPATH=`pwd`/../../.go go build
|
||||
go build
|
||||
|
|
Loading…
Reference in New Issue