Files
bqst/Makefile
2025-12-21 15:38:31 +01:00

23 lines
560 B
Makefile

VERSION := 0.1.0
WASM := bqst-core/target/wasm32-unknown-unknown/release/bqst_core.wasm
.DEFAULT_GOAL := $(WASM)
RUSTFILES := $(patsubst %,bqst-core/%,$(shell git -C bqst-core ls-files))
$(WASM): $(RUSTFILES)
cd bqst-core && cargo b -r
test/test.pdf: $(WASM) $(shell find src -type f) test/test.typ
typst c --root . test/test.typ
.PHONY: install test
test: test/test.pdf
[ -n "$$NOOPEN" ] || xdg-open test/test.pdf
DESTDIR := ~/.local/share/typst/packages/local/bqst/$(VERSION)/
install: $(WASM)
mkdir -p $(DESTDIR)
rsync -a --delete ./ $(DESTDIR)