summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-02-26 19:22:18 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-02-26 19:22:18 +0200
commite1ba5ff36cefd602e64210dcfd0c4076c871e38c (patch)
tree47ea7bb37165f51bdb40ce099a0704308b2a99ba /Makefile
parent4dbfbc6d68516db3e90114b78c291c8a1c0eb732 (diff)
Early commit: both desktop and wasm support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..30f6f27
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+all: build
+
+build-web:
+ cargo +nightly build --target=wasm32-unknown-unknown --release
+ cp target/wasm32-unknown-unknown/release/bug_basher.wasm html/gate_app.wasm
+
+build-desktop:
+ cargo build --release
+
+build: build-desktop build-web
+
+test:
+ cargo test --release
+
+clean:
+ cargo clean
+
+
+.PHONY: all build-web build-desktop build test clean