946
|
1 GOPATH=$(shell pwd)
|
947
|
2 export GOPATH
|
948
|
3 build: deps
|
946
|
4 go build pilight.go
|
|
5
|
948
|
6 deps: src/github.com/tarm/goserial src/github.com/go-martini/martini
|
|
7
|
|
8 src/github.com/tarm/goserial:
|
|
9 go get github.com/tarm/goserial
|
|
10 src/github.com/go-martini/martini:
|
|
11 go get github.com/go-martini/martini
|
|
12
|
946
|
13 setup:
|
|
14 ln -s . public
|
948
|
15 @echo also need static/polymer/ to be polymer 0.2.3
|
946
|
16
|
948
|
17 build-to-pi: deps
|
|
18 GOBIN=bin-pi GOARCH=arm go install pilight.go
|
|
19 rsync -a bin-pi/pilight pi@192.168.1.157:projects/homeauto/service/pilight/bin/
|