Merge pull request #702 from svanharmelen/f-fix-makefile-for-go1.4

Update Makefile for use with Go 1.4
This commit is contained in:
Mitchell Hashimoto 2015-01-10 15:23:40 -08:00
commit 6fde788dec
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@ testrace: config/y.go
TF_ACC= go test -race $(TEST) $(TESTARGS)
updatedeps: config/y.go
go get -u -v ./...
@if [ $(shell go version | cut -f3 -d" " | cut -f2 -d.) -lt 4 ]; then \
go get -u -v ./...; \
else \
go get -f -u -v ./...; \
fi
config/y.go: config/expr.y
cd config/ && \