1
Fork 0

new make targets: install, rustup_cross

This commit is contained in:
juliangaal 2019-06-07 10:33:02 +02:00
parent 2a64741b88
commit 303a6094dc

View file

@ -1,4 +1,5 @@
target = armv7-unknown-linux-gnueabihf
cross_comp_packages = gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross
mode = release
home = $(shell pwd)
@ -7,6 +8,15 @@ home = $(shell pwd)
build:
cargo build
test:
cargo test
rustup_cross:
rustup target add $(target)
install:
apt-get install $(cross_comp_packages)
linux:
cargo build --examples --$(mode) --target=$(target)