gx install stuff in cmd/ipfs/Makefile
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Jan 30, 2016 at 09:33 UTC
b5a93ead62bbefd1f5fc6b41d735d2eaf5679d1a
1 file changed
+8
-1
cmd/ipfs/Makefile
+8
-1
@@ -2,7 +2,14 @@ all: install
2
commit = $(shell git rev-parse --short HEAD 2> /dev/null || echo unknown)
3
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(commit)"
4
5
-build:
5
+gx:
6
+ go get -u github.com/whyrusleeping/gx
7
+ go get -u github.com/whyrusleeping/gx-go
8
+
9
+deps: gx
10
+ gx --verbose install --global
11
+
12
+build: deps
13
go build -ldflags=$(ldflags)
14
15
install: build