GitRoot

craft your forge, build your project, grow your community freely
 1# SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
 2#
 3# SPDX-License-Identifier: EUPL-1.2
 4
 5NAME=grafter
 6VERSION=0.0.1
 7
 8all: clean test build
 9
10${NAME}-${VERSION}.wasm:
11	tinygo build -buildmode=c-shared -o ${NAME}-${VERSION}.wasm -scheduler=none --no-debug -target=wasip1 ./
12
13build: ${NAME}-${VERSION}.wasm
14
15test:
16	go test -race ./...
17
18clean:
19	rm -rf ${NAME}-${VERSION}.wasm
20	go clean