Skip to content

Commit

Permalink
Merge pull request #2458 from ipfs/makefile-fixes
Browse files Browse the repository at this point in the history
Makefile fixes
  • Loading branch information
whyrusleeping committed Mar 10, 2016
2 parents 6f8ea13 + 6c74ac0 commit 82d5e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ gxgo_upgrade:
go get -u github.com/whyrusleeping/gx-go

path_check:
@bin/check_go_path $(realpath $(shell pwd))
@bin/check_go_path $(realpath $(shell pwd)) $(realpath $(GOPATH)/src/github.com/ipfs/go-ipfs)

gx_check:
@bin/check_gx_program "gx" "0.3" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
Expand All @@ -44,7 +44,7 @@ deps: go_check gx_check path_check
vendor: godep
godep save -r ./...

install: build
install: deps
cd cmd/ipfs && go install -ldflags=$(ldflags)

build: deps
Expand Down
3 changes: 1 addition & 2 deletions bin/check_go_path
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

PWD=$1
EXPECTED=$2

if [ -z "$PWD" ]; then
echo "must pass in your current working directory"
Expand All @@ -12,8 +13,6 @@ if [ -z "$GOPATH" ]; then
exit 1
fi

EXPECTED="$GOPATH/src/github.com/ipfs/go-ipfs"

if [ "$PWD" != "$EXPECTED" ]; then
echo "go-ipfs must be built from within your \$GOPATH directory."
echo "expected '$EXPECTED' but got '$PWD'"
Expand Down

0 comments on commit 82d5e2e

Please sign in to comment.