From 303a6094dc393c0a8cdcbb1c8d8f8683e8377b1a Mon Sep 17 00:00:00 2001 From: juliangaal Date: Fri, 7 Jun 2019 10:33:02 +0200 Subject: [PATCH] new make targets: install, rustup_cross --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 391f1a4..7cccbf0 100644 --- a/Makefile +++ b/Makefile @@ -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)