VERSION ?= latest TMP_DIR ?= .tmp DEV_MACHINE ?= pn-dev $(TMP_DIR)/printnanny_license.zip: PRINTNANNY_INSTALL_DIR=$(TMP_DIR) ./tools/download-license.sh $(TMP_DIR): mkdir -p $(TMP_DIR) test-license: $(TMP_DIR)/printnanny_license.zip clean: rm -rf $(TMP_DIR) images: docker build \ -f tools/docker/aarch64-unknown-linux-gnu.Dockerfile \ -t bitsyai/cross:aarch64-unknown-linux-gnu tools/docker docker push bitsyai/cross:aarch64-unknown-linux-gnu docker build \ -f tools/docker/armv7-unknown-linux-gnueabihf.Dockerfile \ -t bitsyai/cross:armv7-unknown-linux-gnueabihf tools/docker docker push bitsyai/cross:armv7-unknown-linux-gnueabihf docker build \ -f tools/docker/x86_64-unknown-linux-gnu.Dockerfile \ -t bitsyai/cross:x86_64-unknown-linux-gnu tools/docker docker push bitsyai/cross:x86_64-unknown-linux-gnu patch: cargo release patch --workspace --execute --tag minor: cargo release minor --workspace --execute --tag major: cargo release major --workspace --execute --tag test-profile: clean ./tools/test-profile.sh dev-build: cross build --workspace --target=aarch64-unknown-linux-gnu rsync --progress -e "ssh -o StrictHostKeyChecking=no" target/aarch64-unknown-linux-gnu/debug/printnanny-cli pi@$(DEV_MACHINE):~/printnanny-cli rsync --progress -e "ssh -o StrictHostKeyChecking=no" target/aarch64-unknown-linux-gnu/debug/printnanny-dash pi@$(DEV_MACHINE):~/printnanny-dash ssh -o StrictHostKeyChecking=no pi@$(DEV_MACHINE) "sudo systemctl stop printnanny.target" ssh -o StrictHostKeyChecking=no pi@$(DEV_MACHINE) "sudo cp /home/pi/printnanny-cli /usr/local/bin/printnanny-cli" ssh -o StrictHostKeyChecking=no pi@$(DEV_MACHINE) "sudo cp /home/pi/printnanny-dash /usr/local/bin/printnanny-dash" ssh -o StrictHostKeyChecking=no pi@$(DEV_MACHINE) "sudo systemctl restart printnanny.target"