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=stigma
 6VERSION=0.0.1
 7
 8all: clean test build
 9
10node_modules:
11	npm install
12
13${NAME}-${VERSION}.wasm: node_modules
14	node embed.js
15	npm run asbuild:release
16	mv ${NAME}.wasm ${NAME}-${VERSION}.wasm
17
18build: ${NAME}-${VERSION}.wasm
19
20test: node_modules
21	npm run test
22
23clean:
24	rm -rf ${NAME}-${VERSION}.wasm