aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2018-08-10 02:09:16 +0000
committerGitHub <noreply@github.com>2018-08-10 02:09:16 +0000
commitf07ca5516b3062d387225475cefc8dcf9837a7fa (patch)
treeee0f4ac3a217bfd335a2c15e0a4d19cbbb5a636a
parentAdd title to output (diff)
parentAdds .PHONY to local and run (diff)
downloadminiserve-f07ca5516b3062d387225475cefc8dcf9837a7fa.tar.gz
miniserve-f07ca5516b3062d387225475cefc8dcf9837a7fa.zip
Merge pull request #14 from colindean/colindean/better-make
Adds a default Make task that builds locally in release mode
Diffstat (limited to '')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d308975..60ce701 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,14 @@
+.PHONY: local
+local:
+ cargo build --release
+
+.PHONY: run
+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