From 92b04e17de1246f24cc80a56c19798a2426d4832 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Tue, 7 Jan 2020 11:54:35 +0100 Subject: [PATCH] feat: linux and darwin makefile tasks --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index cb4ec1b..4fd110c 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,23 @@ build: @cargo build --release --target $(PKG_TARGET) .PHONY: build +linux: + @docker run --rm \ + --user rust:rust \ + --volume ${PWD}:/home/rust/static-web-server \ + --workdir /home/rust/static-web-server \ + joseluisq/rust-linux-darwin-builder:latest \ + sh -c "cargo build --release --target $(PKG_TARGET)" +.PHONY: linux + +darwin: + @docker run --rm \ + --user rust:rust \ + --volume ${PWD}:/home/rust/static-web-server \ + --workdir /home/rust/static-web-server \ + joseluisq/rust-linux-darwin-builder:latest \ + sh -c "cargo build --release --target $(PKG_TARGET_DARWIN)" +.PHONY: darwin ####################################### ########### Utility tasks ############# -- libgit2 1.7.2