Skip to content

Commit ea11dba

Browse files
committed
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
2 parents 5dd56bb + e6d36fe commit ea11dba

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ mist
2727
cmd/mist/mist
2828
deploy/osx/Mist.app
2929
deploy/osx/Mist\ Installer.dmg
30+
31+
# used by the Makefile
32+
/build/_workspace/
33+
/build/bin/
34+

‎Makefile‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This Makefile is meant to be used by people that do not usually work
2+
# with Go source code. If you know what GOPATH is then you probably
3+
# don't need to bother with make.
4+
#
5+
# Note that there is no way to run the tests or do anything other than
6+
# building the binaries. This is by design.
7+
8+
.PHONY: geth mist clean
9+
GOBIN = build/bin
10+
11+
geth:
12+
build/env.sh go install -v github.com/ethereum/go-ethereum/cmd/geth
13+
@echo "Done building."
14+
@echo "Run \"$(GOBIN)/geth\" to launch geth."
15+
16+
mist:
17+
build/env.sh go install -v github.com/ethereum/go-ethereum/cmd/mist
18+
@echo "Done building."
19+
@echo "Run \"$(GOBIN)/mist --asset_path=cmd/mist/assets\" to launch mist."
20+
21+
clean:
22+
rm -fr build/_workspace/pkg/ $(GOBIN)/*

‎build/env.sh‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
if [ ! -f "build/env.sh" ]; then
6+
echo "$0 must be run from the root of the repository."
7+
exit 2
8+
fi
9+
10+
# Create fake Go workspace if it doesn't exist yet.
11+
workspace="$PWD/build/_workspace"
12+
root="$PWD"
13+
ethdir="$workspace/src/github.com/ethereum"
14+
if [ ! -L "$ethdir/go-ethereum" ]; then
15+
mkdir -p "$ethdir"
16+
cd "$ethdir"
17+
ln -s ../../../../../. go-ethereum
18+
cd "$root"
19+
fi
20+
21+
# Set up the environment to use the workspace.
22+
# Also add Godeps workspace so we build using canned dependencies.
23+
GOPATH="$ethdir/go-ethereum/Godeps/_workspace:$workspace"
24+
GOBIN="$PWD/build/bin"
25+
export GOPATH GOBIN
26+
27+
# Launch the arguments with the configured environment.
28+
exec $@

0 commit comments

Comments
 (0)