Fork of daniellemaywood.uk/gleam — Wasm codegen work
398 B
21 lines
1# Sample Gleam Wasm app — build with the in-repo compiler and run under wasmtime.
2#
3# Usage (from this directory):
4# make run
5
6GLEAM ?= ../../target/debug/gleam
7WASM := build/dev/wasm/hello_wasm/hello_wasm.wasm
8
9.PHONY: gleam-compiler build run clean
10
11gleam-compiler:
12 cd ../.. && cargo build -p gleam
13
14build: gleam-compiler
15 $(GLEAM) build
16
17run: build
18 wasmtime $(WASM)
19
20clean:
21 rm -rf build