1
Fork 0

Makefile for easier testing

This commit is contained in:
juliangaal 2019-04-29 09:14:55 +02:00
parent 1ca32fedf3
commit c85ae24e11

19
Makefile Normal file
View file

@ -0,0 +1,19 @@
target = armv7-unknown-linux-gnueabihf
mode = release
home = $(shell pwd)
.DEFAULT_GOAL = build
build:
cargo build
ext:
cd $(home)/example && cargo build --$(mode) --target $(target)
viz:
cd $(home)/viz/viz && cargo build --$(mode) --target $(target)
deploy: ext
scp $(home)/example/target/$(target)/$(mode)/example pi@192.168.1.136:
.PHONY: deploy build ext viz