1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

Makefile: add go_check target

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2016-02-23 21:29:12 +01:00
parent 40b21bfcfb
commit 6c959c8c6f

View File

@ -16,6 +16,9 @@ godep:
toolkit_upgrade: gx_upgrade gxgo_upgrade
go_check:
@bin/check_go_version "1.5.2"
gx_upgrade:
go get -u github.com/whyrusleeping/gx
@ -26,7 +29,7 @@ gx_check:
@bin/check_gx_program "gx" "0.3" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
@bin/check_gx_program "gx-go" "0.2" 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'
deps: gx_check
deps: go_check gx_check
gx --verbose install --global
# saves/vendors third-party dependencies to Godeps/_workspace
@ -50,7 +53,8 @@ clean:
uninstall:
cd cmd/ipfs && go clean -i -ldflags=$(ldflags)
PHONY += all help godep toolkit_upgrade gx_upgrade gxgo_upgrade gx_check deps vendor install build nofuse clean uninstall
PHONY += all help godep toolkit_upgrade gx_upgrade gxgo_upgrade gx_check
PHONY += go_check deps vendor install build nofuse clean uninstall
##############################################################
# tests targets