assert that you must build from inside your gopath
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Feb 23, 2016 at 17:46 UTC
719881967171ebf0f5df7610eb681e5d14e77913
1 file changed
+4
-1
Makefile
+4
-1
@@ -28,6 +28,9 @@ gx_upgrade:
28
gxgo_upgrade:
29
go get -u github.com/whyrusleeping/gx-go
30
31
+path_check:
32
+ test "$(shell pwd)" = "$(GOPATH)/src/github.com/ipfs/go-ipfs" || (echo "go-ipfs must be built from within your \$$GOPATH directory." && false)
33
+
34
gx_check:
35
@bin/check_gx_program "gx" "0.3" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
36
@bin/check_gx_program "gx-go" "0.2" 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'
@@ -44,7 +47,7 @@ vendor: godep
47
install: build
48
cd cmd/ipfs && go install -ldflags=$(ldflags)
49
47
-build: deps
50
+build: deps path_check
51
cd cmd/ipfs && go build -i -ldflags=$(ldflags)
52
53
nofuse: deps