aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorColin Dean <colin.dean@arcadia.io>2018-08-09 18:23:47 +0000
committerColin Dean <colin.dean@arcadia.io>2018-08-09 18:23:47 +0000
commitb291c90758b447462ca06c7088b186bee5f43e0f (patch)
tree347cfbd4290ba3a88c06f7c56b9d1268d48410d4 /Makefile
parentAdd title to output (diff)
downloadminiserve-b291c90758b447462ca06c7088b186bee5f43e0f.tar.gz
miniserve-b291c90758b447462ca06c7088b186bee5f43e0f.zip
Adds a default Make task that builds locally in release mode
Diffstat (limited to '')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d308975..89ce45e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,15 @@
+.PHONY: all
+local:
+ cargo build --release
+ strip target/release/miniserve
+ upx target/release/miniserve
+
+run:
+ifndef ARGS
+ @echo Run "make run" with ARGS set to pass arguments…
+endif
+ cargo run --release -- $(ARGS)
+
.PHONY: build-linux
build-linux:
cargo build --target x86_64-unknown-linux-musl --release