PKGBUILD/Makefile

12 lines
375 B
Makefile

VERSION ?= "$(shell git rev-parse --short HEAD)-git"
go-build-amd:
go build -o flucky -ldflags "-X main.version=${VERSION}"
go-build-arm7:
GOOS=linux GOARCH=arm GOARM=7 go build -o flucky -ldflags "-X main.version=${VERSION}"
pi-copy: go-build-arm7
scp flucky hades.trier.cryptic.systems:/usr/local/bin
ssh hades.trier.cryptic.systems 'chmod +x /usr/local/bin/flucky'