working linux makefile
when building develop branch, checkout of eth-go develop branch is required
This commit is contained in:
parent
fbd53f0e34
commit
13e18e1d8f
17
Makefile
17
Makefile
@ -1,18 +1,23 @@
|
|||||||
UNAME = $(shell uname)
|
UNAME = $(shell uname)
|
||||||
|
FILES=qml *.png
|
||||||
|
GOPATH=$(PWD)
|
||||||
|
|
||||||
|
|
||||||
# Default is building
|
# Default is building
|
||||||
all:
|
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:
|
install:
|
||||||
# Linux build
|
# Linux build
|
||||||
ifeq ($(UNAME),Linux)
|
ifeq ($(UNAME),Linux)
|
||||||
mkdir /usr/local/ethereal
|
mkdir -p /usr/share/ethereal
|
||||||
files=(wallet.qml net.png network.png new.png tx.png)
|
for file in $(FILES); do \
|
||||||
for file in "${files[@]}"; do
|
cp -r $$file /usr/share/ethereal; \
|
||||||
cp $file /usr/share/ethereal
|
|
||||||
done
|
done
|
||||||
cp $GOPATH/bin/go-ethereum /usr/local/bin/ethereal
|
cp go-ethereum /usr/local/bin/ethereal
|
||||||
endif
|
endif
|
||||||
# OS X build
|
# OS X build
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin)
|
||||||
|
Loading…
Reference in New Issue
Block a user