summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShaun Taheri <github@taheris.co.uk>2016-09-08 16:01:06 +0200
committerGitHub <noreply@github.com>2016-09-08 16:01:06 +0200
commit472109e26e883463c9540b3ec9221daf50311f4f (patch)
tree3587b057ebb1f40c0e5ecd2fb75b58197e8a65b1 /Makefile
parent56a59856ff89195aff896242048a50ddc47a423c (diff)
parent5b69a479dd4ebf6f8c6fddb3ef48823b59bb0a17 (diff)
downloadrvi_sota_client-472109e26e883463c9540b3ec9221daf50311f4f.tar.gz
Merge pull request #122 from advancedtelematic/bugfix/pro-1355/download-failed-report
Send an UpdateReport after a DownloadFailed Event
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8cdbfa4..d06e41a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ RUST_IN_DOCKER := \
advancedtelematic/rust:latest
CARGO := $(RUST_IN_DOCKER) cargo
+TARGET := x86_64-unknown-linux-gnu
# function for building new packages
define make-pkg
@@ -58,7 +59,7 @@ clean: ## Remove all compiled libraries, builds and temporary files.
@rm -rf rust-openssl .cargo
test: rust-openssl ## Run all cargo tests.
- $(CARGO) test
+ $(CARGO) test --target=$(TARGET)
doc: ## Generate documentation for the sota crate.
$(CARGO) doc --lib --no-deps --release
@@ -68,8 +69,8 @@ clippy: ## Run clippy lint checks using the nightly compiler.
rustup run nightly cargo clippy -- -Dclippy
client: rust-openssl src/ ## Compile a new release build of the client.
- $(CARGO) build --release --target=x86_64-unknown-linux-gnu
- @cp target/x86_64-unknown-linux-gnu/release/sota_client run/
+ $(CARGO) build --release --target=$(TARGET)
+ @cp target/$(TARGET)/release/sota_client run/
image: client ## Build a Docker image for running the client.
@docker build --tag advancedtelematic/sota-client run