GitRoot
Craft your forge, Build your project, Grow your community freely
1# SPDX-FileCopyrightText: 2026 Romain Maneschi <romain@gitroot.dev>
2#
3# SPDX-License-Identifier: EUPL-1.2
4
5SCOPE=gitroot
6NAME=apex_mermaid
7VERSION=0.0.2
8
9all: clean test build
10
11target:
12 rustup +nightly target add wasm32-wasip1
13
14${SCOPE}-${NAME}-${VERSION}.wasm: target
15 cargo +nightly build --target=wasm32-wasip1 --release
16 cp target/wasm32-wasip1/release/${NAME}.wasm ./${SCOPE}-${NAME}-${VERSION}.wasm
17
18build:${SCOPE}-${NAME}-${VERSION}.wasm
19
20test:
21 echo "nothing found!"
22
23clean:
24 rm -rf ${SCOPE}-${NAME}-${VERSION}.wasm
25 cargo clean