use defaults for GOPATH
This commit is contained in:
parent
06583fe483
commit
76d61cc2bc
5
Makefile
5
Makefile
@ -1,7 +1,6 @@
|
|||||||
SRC := $(wildcard *.go) main/client.go
|
SRC := $(wildcard *.go) main/client.go
|
||||||
BIN := bin
|
BIN := bin
|
||||||
CLIENT := ${BIN}/client
|
CLIENT := ${BIN}/client
|
||||||
GOPATH ?= ${PWD}
|
|
||||||
|
|
||||||
all: test client
|
all: test client
|
||||||
|
|
||||||
@ -9,10 +8,10 @@ client: ${CLIENT}
|
|||||||
|
|
||||||
${CLIENT}: ${SRC}
|
${CLIENT}: ${SRC}
|
||||||
@echo build $@
|
@echo build $@
|
||||||
@GOPATH=${GOPATH} go build -o $@ -- main/client.go
|
go build -o $@ -- main/client.go
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@GOPATH=${GOPATH} go test
|
go test
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo clean ${BIN}
|
@echo clean ${BIN}
|
||||||
|
Loading…
Reference in New Issue
Block a user