aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2018-05-16 11:26:21 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2018-05-16 11:26:21 +0000
commit6429898f31cee6ecd954c927fce9ec0a96ff1cc2 (patch)
treeb8e96cda94792df572922f152f1bf3b0fd49195c
parentFix for stable (diff)
downloadminiserve-6429898f31cee6ecd954c927fce9ec0a96ff1cc2.tar.gz
miniserve-6429898f31cee6ecd954c927fce9ec0a96ff1cc2.zip
Add nice helper Makefile
Diffstat (limited to '')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..50d91a0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+.PHONY: build-linux
+build-linux:
+ cargo build --target x86_64-unknown-linux-musl --release
+ strip target/x86_64-unknown-linux-musl/release/genact
+ upx target/x86_64-unknown-linux-musl/release/genact
+
+.PHONY: build-win
+build-win:
+ RUSTFLAGS="-C linker=x86_64-w64-mingw32-gcc" cargo build --target x86_64-pc-windows-gnu --release
+ strip target/x86_64-pc-windows-gnu/release/genact.exe
+ upx target/x86_64-pc-windows-gnu/release/genact.exe
+
+.PHONY: build-apple
+build-apple:
+ cargo build --target x86_64-apple-darwin --release
+ strip target/x86_64-apple-darwin/release/genact
+ upx target/x86_64-apple-darwin/release/genact