Skip to content

Commit

Permalink
Add makefile for meatweb
Browse files Browse the repository at this point in the history
  • Loading branch information
simonft committed Jan 20, 2024
1 parent 5bf3223 commit 23180d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions meatweb/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 23180d0

Please sign in to comment.