From 0ddf2ba61f40b7b60ce11d3d50ce15706bfe0f29 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Sat, 11 Feb 2023 14:40:20 +0100 Subject: [PATCH] make: add all, docs, check, lint targets --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Makefile b/Makefile index 1a9a93c..3f44eec 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,30 @@ .POSIX: +all: jotdown docs + cargo build --workspace + +jotdown: target/release/jotdown + cp $< $@ + +target/release/jotdown: + cargo build --release + +.PHONY: +docs: + cargo doc --no-deps --workspace + +.PHONY: lint +lint: + cargo fmt --all -- --check + cargo clippy -- -D warnings + cargo clippy --no-default-features -- -D warnings + cargo clippy --all-features -- -D warnings + +.PHONY: check +check: + cargo test --workspace + cargo test --workspace --no-default-features + .PHONY: suite suite: git submodule update --init modules/djot.js