Skip to content

Commit 13e18e1

Browse files
committed
working linux makefile
when building develop branch, checkout of eth-go develop branch is required
1 parent fbd53f0 commit 13e18e1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
UNAME = $(shell uname)
2+
FILES=qml *.png
3+
GOPATH=$(PWD)
4+
25

36
# Default is building
47
all:
5-
go install
8+
go get -d
9+
cp *.go $(GOPATH)/src/github.com/ethereum/go-ethereum
10+
cp -r ui $(GOPATH)/src/github.com/ethereum/go-ethereum
11+
go build
612

713
install:
814
# Linux build
915
ifeq ($(UNAME),Linux)
10-
mkdir /usr/local/ethereal
11-
files=(wallet.qml net.png network.png new.png tx.png)
12-
for file in "${files[@]}"; do
13-
cp $file /usr/share/ethereal
16+
mkdir -p /usr/share/ethereal
17+
for file in $(FILES); do \
18+
cp -r $$file /usr/share/ethereal; \
1419
done
15-
cp $GOPATH/bin/go-ethereum /usr/local/bin/ethereal
20+
cp go-ethereum /usr/local/bin/ethereal
1621
endif
1722
# OS X build
1823
ifeq ($(UNAME),Darwin)

0 commit comments

Comments
 (0)