Makefile 431 B

123456789101112131415
  1. dir_guard=@mkdir -p $(@D)
  2. all: rid
  3. rid: $(wildcard **.go)
  4. go build .
  5. put: build/rid.linux_arm
  6. build/rid.linux_arm: $(wildcard **.go)
  7. $(dir_guard)
  8. GOOS=linux GOARCH=arm go build -o build/rid.linux_arm .
  9. ssh 3bees.local '[ -f /usr/local/bin/rid ] && mv /usr/local/bin/rid /usr/local/bin/rid.retired || true'
  10. scp $@ 3bees.local:/usr/local/bin/rid
  11. osc-utility message --host 3bees.local --port 9137 --address /8bus/amp/halt