Depend on build for run

This commit is contained in:
Frederik Menke 2024-01-13 22:45:36 +01:00
parent bc39b14fef
commit 5954377a89

View file

@ -3,7 +3,7 @@ url := "olimex@muele.local"
build: build:
cross build --target=armv7-unknown-linux-gnueabihf cross build --target=armv7-unknown-linux-gnueabihf
run: run: build
ssh {{url}} "killall red" || echo "Failed to kill process. Maybe it's not running" ssh {{url}} "killall red" || echo "Failed to kill process. Maybe it's not running"
rsync -vu ./target/armv7-unknown-linux-gnueabihf/debug/red {{url}}: rsync -vu ./target/armv7-unknown-linux-gnueabihf/debug/red {{url}}:
ssh {{url}} "RUST_BACKTRACE=1 ./red" ssh {{url}} "RUST_BACKTRACE=1 ./red"