@cryptotaxi247 / kubo / commits / 6c959c8c6

Makefile: add go_check target

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Feb 23, 2016 at 21:29 UTC 6c959c8c6f4bcc5c9d64586b46b2428c6ff975c0
1 file changed +6 -2
Makefile
+6 -2
@@ -16,6 +16,9 @@ godep:
16
17 toolkit_upgrade: gx_upgrade gxgo_upgrade
18
19 +go_check:
20 + @bin/check_go_version "1.5.2"
21 +
22 gx_upgrade:
23 go get -u github.com/whyrusleeping/gx
24
@@ -26,7 +29,7 @@ gx_check:
29 @bin/check_gx_program "gx" "0.3" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
30 @bin/check_gx_program "gx-go" "0.2" 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'
31
29 -deps: gx_check
32 +deps: go_check gx_check
33 gx --verbose install --global
34
35 # saves/vendors third-party dependencies to Godeps/_workspace
@@ -50,7 +53,8 @@ clean:
53 uninstall:
54 cd cmd/ipfs && go clean -i -ldflags=$(ldflags)
55
53 -PHONY += all help godep toolkit_upgrade gx_upgrade gxgo_upgrade gx_check deps vendor install build nofuse clean uninstall
56 +PHONY += all help godep toolkit_upgrade gx_upgrade gxgo_upgrade gx_check
57 +PHONY += go_check deps vendor install build nofuse clean uninstall
58
59 ##############################################################
60 # tests targets