initial version
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user