提交 f24aa85c 作者: Christian Couder

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

License: MIT
Signed-off-by: 's avatarChristian Couder <chriscool@tuxfamily.org>
上级 c777ac05
# 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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论