20 lines
439 B
Makefile
20 lines
439 B
Makefile
.PHONY: arm
|
|
arm:
|
|
go mod tidy
|
|
GOOS=linux GOARCH=arm GOARM=7 go build
|
|
|
|
.PHONY: windows
|
|
windows:
|
|
go mod tidy
|
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ble.exe .
|
|
|
|
.PHONY: macos
|
|
macos:
|
|
go mod tidy
|
|
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build .
|
|
|
|
.PHONY: release
|
|
release: arm
|
|
ssh pi@192.168.0.21 "sudo systemctl stop ble.service"
|
|
scp ./ble-ibeacon pi@192.168.0.21:~/
|
|
ssh pi@192.168.0.21 "sudo systemctl start ble.service"
|