audioview/Makefile

23 lines
502 B
Makefile
Raw Normal View History

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