index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2020-01-07 10:54:35.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2020-01-07 10:54:35.0 +00:00:00
commit
92b04e17de1246f24cc80a56c19798a2426d4832 [patch]
tree
af77699af61190f916500bdf6781188dc813d8ca
parent
1509f5fb14aa1e021c77946739d441306e122c69
download
92b04e17de1246f24cc80a56c19798a2426d4832.tar.gz

feat: linux and darwin makefile tasks



Diff

 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 #############