Skip to content

Commit

Permalink
Makefile: go build instead of install (solves cross compile issues)
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed May 6, 2016
1 parent a1c201a commit 6a00a3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GOBIN = build/bin
GO ?= latest

geth:
build/env.sh go install -v $(shell build/flags.sh) ./cmd/geth
build/env.sh go build -i -v $(shell build/flags.sh) -o $(GOBIN)/geth ./cmd/geth
@echo "Done building."
@echo "Run \"$(GOBIN)/geth\" to launch geth."

Expand Down Expand Up @@ -103,7 +103,9 @@ evm:
@echo "Run \"$(GOBIN)/evm to start the evm."

all:
build/env.sh go install -v $(shell build/flags.sh) ./...
for cmd in `ls ./cmd/`; do \
build/env.sh go build -i -v $(shell build/flags.sh) -o $(GOBIN)/$$cmd ./cmd/$$cmd; \
done

test: all
build/env.sh go test ./...
Expand Down

0 comments on commit 6a00a3a

Please sign in to comment.