aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-15 13:31:52 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-15 13:31:52 -0500
commit009454efadc2f3ab6e965cfb6045693cdc7b5021 (patch)
tree722dfa47f01e53043bcc99c9a45cccd742d7d94f /Makefile
parentbbf15cfef8134da720a27bd71a93efcb8467025b (diff)
downloadteleterm-009454efadc2f3ab6e965cfb6045693cdc7b5021.tar.gz
teleterm-009454efadc2f3ab6e965cfb6045693cdc7b5021.zip
add basic websocket client
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 12d76a0..35d4c02 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-NAME = $(shell cargo read-manifest | jq -r '.name')
-VERSION = $(shell cargo read-manifest | jq -r '.version')
+NAME = $(shell cargo metadata --no-deps --format-version 1 --manifest-path teleterm/Cargo.toml | jq -r '.name')
+VERSION = $(shell cargo metadata --no-deps --format-version 1 --manifest-path teleterm/Cargo.toml | jq -r '.version')
INTERACTIVE_SUBCOMMANDS = stream watch record play
NONINTERACTIVE_SUBCOMMANDS = server
@@ -94,3 +94,9 @@ publish-arch: test pkg/$(ARCH_PACKAGE) pkg/$(ARCH_PACKAGE).minisig release-dir-a
install-arch: pkg/$(ARCH_PACKAGE)
@sudo pacman -U pkg/$(ARCH_PACKAGE)
.PHONY: install-arch
+
+wasm: target/wasm/teleterm_web_bg.wasm
+.PHONY: wasm
+
+target/wasm/teleterm_web_bg.wasm: teleterm-web/Cargo.toml teleterm-web/src/lib.rs
+ @wasm-pack build --no-typescript --target web --out-dir ../target/wasm teleterm-web