2024-04-25 08:50:01 +09:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
2023-04-19 22:58:45 +09:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
2024-04-25 08:50:01 +09:00
|
|
|
@PATH=$(CURDIR)/misc/wasm:$$PATH GOOS=js GOARCH=wasm go test ./...
|
2023-04-19 22:58:45 +09:00
|
|
|
|
2024-04-16 10:19:53 +09:00
|
|
|
.PHONY: build-examples
|
|
|
|
build-examples:
|
|
|
|
for dir in $(shell find ./_examples -maxdepth 1 -type d); do \
|
|
|
|
if [ $$dir = "./_examples" ]; then continue; fi; \
|
2024-04-16 23:27:26 +09:00
|
|
|
echo 'build:' $$dir; \
|
2024-04-16 10:19:53 +09:00
|
|
|
cd $$dir && GOOS=js GOARCH=wasm go build -o ./build/app.wasm; \
|
|
|
|
cd ../../; \
|
2024-04-16 23:27:26 +09:00
|
|
|
done
|