2018-11-07 19:07:15 +00:00
|
|
|
VERSION ?= "$(shell git rev-parse --short HEAD)-git"
|
|
|
|
|
|
|
|
go-build-amd:
|
|
|
|
go build -o flucky -ldflags "-X main.version=${VERSION}"
|
|
|
|
|
2018-11-19 21:36:21 +00:00
|
|
|
go-build-arm7:
|
|
|
|
GOOS=linux GOARCH=arm GOARM=7 go build -o flucky -ldflags "-X main.version=${VERSION}"
|
|
|
|
|
2018-11-07 19:07:15 +00:00
|
|
|
pi-copy: go-build-arm7
|
2019-02-24 21:46:36 +00:00
|
|
|
scp flucky hades.trier.cryptic.systems:/usr/local/bin
|
|
|
|
ssh hades.trier.cryptic.systems 'chmod +x /usr/local/bin/flucky'
|