# Old target: # armv7-unknown-linux-gnueabihf # New target: # arm-unknown-linux-musleabihf # armv7-unknown-linux-musleabihf TARGET = arm-unknown-linux-gnueabihf # TARGET = armv7-unknown-linux-gnueabihf # TARGET = arm-unknown-linux-gnueabi # TARGET = armv7-unknown-linux-gnueabi # TARGET = arm-unknown-linux-musleabihf # TARGET = armv7-unknown-linux-musleabihf # TARGET = arm-unknown-linux-musleabi # TARGET = armv7-unknown-linux-musleabi PROJECT_NAME = aw-lights .PHONY: build release deploy run build: cargo build --target=$(TARGET) du -sh ./target/$(TARGET)/debug/$(PROJECT_NAME) ||: release: cargo build --release --target=$(TARGET) du -sh ./target/$(TARGET)/release/$(PROJECT_NAME) ||: deploy: build arm-linux-gnueabihf-strip ./target/$(TARGET)/debug/$(PROJECT_NAME) scp ./target/$(TARGET)/debug/$(PROJECT_NAME) pi:$(PROJECT_NAME)-bin run: deploy ssh pi ./$(PROJECT_NAME)-bin