audioview/Makefile

23 lines
502 B
Makefile

# Based on https://raw.githubusercontent.com/saschagrunert/webapp.rs/master/Makefile
all: build-frontend
build-frontend:
cd frontend-core && \
wasm-pack build --dev --target web --out-name wasm --out-dir ./static
build-doc:
cargo doc --all --no-deps
run:
simple-http-server -i ./frontend-core/static/ -p 3000 --nocache --try-file ./frontend-core/static/index.html
lint: lint-rustfmt lint-clippy
lint-clippy:
cargo clippy --all -- -D warnings
lint-rustfmt:
cargo fmt
git diff --exit-code