From 23180d05450f4771905ad9603964e70e48501879 Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Sat, 20 Jan 2024 12:13:59 -0500 Subject: [PATCH] Add makefile for meatweb --- meatweb/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meatweb/Makefile diff --git a/meatweb/Makefile b/meatweb/Makefile new file mode 100644 index 0000000..6039782 --- /dev/null +++ b/meatweb/Makefile @@ -0,0 +1,16 @@ +.PHONY: build serve release + +RUSTFLAGS := --cfg=web_sys_unstable_apis + +default: + @echo "No target specified. Run 'make build', 'make serve', or 'make release'." + +build: + RUSTFLAGS=$(RUSTFLAGS) trunk build + +serve: + RUSTFLAGS=$(RUSTFLAGS) trunk serve + +release: + RUSTFLAGS=$(RUSTFLAGS) trunk build --release + wasm-opt -Oz -o dist/*_bg.wasm dist/*_bg.wasm