crossenv := "NIX_STORE=/nix/store nix develop .#cross --command"

build-armv6:
  {{crossenv}} cross build --target arm-unknown-linux-gnueabihf --release --no-default-features -F drm

debian-armv6: build-armv6
  {{crossenv}} cargo deb --target=arm-unknown-linux-gnueabihf --no-build --no-strip

build: debian-armv6

deploy-armv6 TARGET: debian-armv6
  scp ./target/arm-unknown-linux-gnueabihf/debian/memocadre_0.1.0-1_armhf.deb {{ TARGET }}:~
  ssh {{ TARGET }} sudo dpkg -i '~/memocadre_0.1.0-1_armhf.deb'

ci:
  cargo fmt --check
  cargo check
  cargo test
