# HG changeset patch # User drewp # Date 1405208128 25200 # Node ID faefd71c45ae64362caf2af45ed99a0d991ab1f7 # Parent e0f13a6b00ee3acd1adb61a4d2245b4381c2da05 makefile rearrange Ignore-this: 2afd5660be2972a3d619ba1add3384c2 darcs-hash:20140712233528-312f9-b0cc27d1d1568ca17546dc4d7327ff274b11e6e8 diff -r e0f13a6b00ee -r faefd71c45ae service/pilight/makefile --- a/service/pilight/makefile Sat Jul 12 12:17:58 2014 -0700 +++ b/service/pilight/makefile Sat Jul 12 16:35:28 2014 -0700 @@ -1,11 +1,19 @@ GOPATH=$(shell pwd) export GOPATH -build: +build: deps go build pilight.go +deps: src/github.com/tarm/goserial src/github.com/go-martini/martini + +src/github.com/tarm/goserial: + go get github.com/tarm/goserial +src/github.com/go-martini/martini: + go get github.com/go-martini/martini + setup: - go get github.com/tarm/goserial - go get github.com/go-martini/martini ln -s . public - # also need static/polymer/ to be polymer 0.2.3 + @echo also need static/polymer/ to be polymer 0.2.3 +build-to-pi: deps + GOBIN=bin-pi GOARCH=arm go install pilight.go + rsync -a bin-pi/pilight pi@192.168.1.157:projects/homeauto/service/pilight/bin/