Makefile: add variables for min versions of go, gx and gx-go
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
May 4, 2016 at 20:25 UTC
f24aa85c8eca2c290d186f18ad62572ff306aa47
1 file changed
+7
-3
Makefile
+7
-3
@@ -1,3 +1,7 @@
1
+# Minimum version numbers for software required to build IPFS
2
+IPFS_MIN_GO_VERSION = 1.5.2
3
+IPFS_MIN_GX_VERSION = 0.6
4
+IPFS_MIN_GX_GO_VERSION = 1.1
5
6
ifeq ($(TEST_NO_FUSE),1)
7
go_test=go test -tags nofuse
@@ -15,7 +19,7 @@ godep:
19
toolkit_upgrade: gx_upgrade gxgo_upgrade
20
21
go_check:
18
- @bin/check_go_version "1.5.2"
22
+ @bin/check_go_version $(IPFS_MIN_GO_VERSION)
23
24
gx_upgrade:
25
go get -u github.com/whyrusleeping/gx
@@ -27,8 +31,8 @@ path_check:
31
@bin/check_go_path $(realpath $(shell pwd)) $(realpath $(GOPATH)/src/github.com/ipfs/go-ipfs)
32
33
gx_check:
30
- @bin/check_gx_program "gx" "0.6" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
31
- @bin/check_gx_program "gx-go" "1.1" 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'
34
+ @bin/check_gx_program "gx" $(IPFS_MIN_GX_VERSION) 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
35
+ @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`'
36
37
deps: go_check gx_check path_check
38
gx --verbose install --global