2014-03-02 17:54:05 -06:00
|
|
|
UNAME = $(shell uname)
|
2014-03-09 00:02:09 -06:00
|
|
|
FILES=qml *.png
|
2014-03-02 17:54:05 -06:00
|
|
|
|
|
|
|
# Default is building
|
|
|
|
all:
|
2014-03-09 00:02:09 -06:00
|
|
|
cp *.go $(GOPATH)/src/github.com/ethereum/go-ethereum
|
|
|
|
cp -r ui $(GOPATH)/src/github.com/ethereum/go-ethereum
|
|
|
|
go install github.com/ethereum/go-ethereum
|
2014-03-02 17:54:05 -06:00
|
|
|
|
|
|
|
install:
|
|
|
|
# Linux build
|
|
|
|
ifeq ($(UNAME),Linux)
|
2014-03-09 00:02:09 -06:00
|
|
|
mkdir /usr/share/ethereal
|
|
|
|
for file in $(FILES); do \
|
|
|
|
cp -r $$file /usr/share/ethereal; \
|
2014-03-02 17:54:05 -06:00
|
|
|
done
|
2014-03-09 00:02:09 -06:00
|
|
|
cp $(GOPATH)/bin/go-ethereum /usr/local/bin/ethereal
|
2014-03-02 17:54:05 -06:00
|
|
|
endif
|
|
|
|
# OS X build
|
|
|
|
ifeq ($(UNAME),Darwin)
|
|
|
|
# Execute py script
|
|
|
|
endif
|