Makefile for easier testing
This commit is contained in:
parent
1ca32fedf3
commit
c85ae24e11
1 changed files with 19 additions and 0 deletions
19
Makefile
Normal file
19
Makefile
Normal 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
|
Loading…
Reference in a new issue