Makefile: add variables for min versions of go, gx and gx-go

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder 2016-05-04 20:25:17 +02:00
parent c777ac05da
commit f24aa85c8e

View File

@ -1,3 +1,7 @@
# Minimum version numbers for software required to build IPFS
IPFS_MIN_GO_VERSION = 1.5.2
IPFS_MIN_GX_VERSION = 0.6
IPFS_MIN_GX_GO_VERSION = 1.1
ifeq ($(TEST_NO_FUSE),1)
go_test=go test -tags nofuse
@ -15,7 +19,7 @@ godep:
toolkit_upgrade: gx_upgrade gxgo_upgrade
go_check:
@bin/check_go_version "1.5.2"
@bin/check_go_version $(IPFS_MIN_GO_VERSION)
gx_upgrade:
go get -u github.com/whyrusleeping/gx
@ -27,8 +31,8 @@ path_check:
@bin/check_go_path $(realpath $(shell pwd)) $(realpath $(GOPATH)/src/github.com/ipfs/go-ipfs)
gx_check:
@bin/check_gx_program "gx" "0.6" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
@bin/check_gx_program "gx-go" "1.1" 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'
@bin/check_gx_program "gx" $(IPFS_MIN_GX_VERSION) 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
@bin/check_gx_program "gx-go" $(IPFS_MIN_GX_GO_VERSION) 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'
deps: go_check gx_check path_check
gx --verbose install --global