# Sample Gleam Wasm app — build with the in-repo compiler and run under wasmtime.
#
# Usage (from this directory):
#   make run

GLEAM ?= ../../target/debug/gleam
WASM  := build/dev/wasm/hello_wasm/hello_wasm.wasm

.PHONY: gleam-compiler build run clean

gleam-compiler:
	cd ../.. && cargo build -p gleam

build: gleam-compiler
	$(GLEAM) build

run: build
	wasmtime $(WASM)

clean:
	rm -rf build
