view service/pilight/makefile @ 948:faefd71c45ae

makefile rearrange Ignore-this: 2afd5660be2972a3d619ba1add3384c2 darcs-hash:20140712233528-312f9-b0cc27d1d1568ca17546dc4d7327ff274b11e6e8
author drewp <drewp@bigasterisk.com>
date Sat, 12 Jul 2014 16:35:28 -0700
parents e0f13a6b00ee
children c2647173b60a
line wrap: on
line source

GOPATH=$(shell pwd)
export GOPATH
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:
	ln -s . public
	@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/