19 lines
398 B
Makefile
19 lines
398 B
Makefile
url := "olimex@muele.local"
|
|
|
|
build:
|
|
cross build --target=armv7-unknown-linux-gnueabihf
|
|
|
|
run: build
|
|
ssh {{url}} "killall red" || echo "Failed to kill process. Maybe it's not running"
|
|
rsync -vu ./target/armv7-unknown-linux-gnueabihf/debug/red {{url}}:
|
|
ssh {{url}} "RUST_BACKTRACE=1 ./red"
|
|
|
|
rdown:
|
|
ssh {{url}} "sudo /usr/sbin/poweroff"
|
|
|
|
mount:
|
|
sshfs {{url}}:/ mount
|
|
|
|
login:
|
|
ssh {{url}}
|