new make targets: install, rustup_cross
This commit is contained in:
parent
2a64741b88
commit
303a6094dc
1 changed files with 10 additions and 0 deletions
10
Makefile
10
Makefile
|
@ -1,4 +1,5 @@
|
||||||
target = armv7-unknown-linux-gnueabihf
|
target = armv7-unknown-linux-gnueabihf
|
||||||
|
cross_comp_packages = gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross
|
||||||
mode = release
|
mode = release
|
||||||
home = $(shell pwd)
|
home = $(shell pwd)
|
||||||
|
|
||||||
|
@ -7,6 +8,15 @@ home = $(shell pwd)
|
||||||
build:
|
build:
|
||||||
cargo build
|
cargo build
|
||||||
|
|
||||||
|
test:
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
rustup_cross:
|
||||||
|
rustup target add $(target)
|
||||||
|
|
||||||
|
install:
|
||||||
|
apt-get install $(cross_comp_packages)
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
cargo build --examples --$(mode) --target=$(target)
|
cargo build --examples --$(mode) --target=$(target)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue