syndicate-rs/Makefile

24 lines
764 B
Makefile
Raw Normal View History

2019-09-17 13:28:51 +00:00
# cargo install cargo-watch
watch:
2019-09-19 10:56:12 +00:00
cargo watch -c -x check -x 'test -- --nocapture'
2019-09-17 13:28:51 +00:00
2019-10-16 13:15:20 +00:00
run-watch:
2019-10-24 19:04:34 +00:00
RUST_BACKTRACE=1 cargo watch -c -x run
2019-10-16 13:15:20 +00:00
2019-10-20 13:02:55 +00:00
clippy-watch:
cargo watch -c -x clippy
2019-09-17 13:28:51 +00:00
inotifytest:
inotifytest sh -c 'reset; cargo build && RUST_BACKTRACE=1 cargo test -- --nocapture'
2019-10-15 12:42:22 +00:00
arm-binary: arm-binary-release
arm-binary-setup:
rustup target add armv7-unknown-linux-musleabihf
# sudo apt install binutils-arm-linux-gnueabihf
arm-binary-release: arm-binary-setup
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABIHF_LINKER=arm-linux-gnueabihf-ld cargo build --target=armv7-unknown-linux-musleabihf --release
arm-binary-debug: arm-binary-setup
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABIHF_LINKER=arm-linux-gnueabihf-ld cargo build --target=armv7-unknown-linux-musleabihf