2014-03-03 01:54:05 +02:00
|
|
|
UNAME = $(shell uname)
|
|
|
|
|
|
|
|
# Default is building
|
|
|
|
all:
|
|
|
|
go install
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Linux build
|
|
|
|
ifeq ($(UNAME),Linux)
|
2014-03-21 12:16:41 +02:00
|
|
|
mkdir -p /usr/local/ethereal
|
|
|
|
files=(net.png network.png new.png tx.png)
|
2014-03-03 01:54:05 +02:00
|
|
|
for file in "${files[@]}"; do
|
|
|
|
cp $file /usr/share/ethereal
|
|
|
|
done
|
2014-03-21 12:16:41 +02:00
|
|
|
cp -r qml /usr/share/ethereal/qml
|
2014-03-03 01:54:05 +02:00
|
|
|
cp $GOPATH/bin/go-ethereum /usr/local/bin/ethereal
|
|
|
|
endif
|
|
|
|
# OS X build
|
|
|
|
ifeq ($(UNAME),Darwin)
|
|
|
|
# Execute py script
|
|
|
|
endif
|