Skip to content

Commit

Permalink
working linux makefile
Browse files Browse the repository at this point in the history
when building develop branch, checkout of eth-go develop branch is required
  • Loading branch information
wemeetagain committed Mar 15, 2014
1 parent fbd53f0 commit 13e18e1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
UNAME = $(shell uname)
FILES=qml *.png
GOPATH=$(PWD)


# Default is building
all:
go install
go get -d
cp *.go $(GOPATH)/src/github.com/ethereum/go-ethereum
cp -r ui $(GOPATH)/src/github.com/ethereum/go-ethereum
go build

install:
# Linux build
ifeq ($(UNAME),Linux)
mkdir /usr/local/ethereal
files=(wallet.qml net.png network.png new.png tx.png)
for file in "${files[@]}"; do
cp $file /usr/share/ethereal
mkdir -p /usr/share/ethereal
for file in $(FILES); do \
cp -r $$file /usr/share/ethereal; \
done
cp $GOPATH/bin/go-ethereum /usr/local/bin/ethereal
cp go-ethereum /usr/local/bin/ethereal
endif
# OS X build
ifeq ($(UNAME),Darwin)
Expand Down

0 comments on commit 13e18e1

Please sign in to comment.