aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-23 23:06:58 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-23 23:06:58 +0800
commit7bc63caedf308315647aa7582537e9831844051d (patch)
tree1156a90901c3ab05b4e548d71774bffcc55b98b8
parented3ae753c2e406c8996fea745ba0f8789d591e7e (diff)
feat: add `doc` target to Makefile
Add a `make doc` recipe that builds and opens documentation with `cargo doc --no-deps --open`, and register it in the `.PHONY` list.
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8176780..20ea224 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,12 @@
-.PHONY: check clippy check-lock test-crate test-sync test-async expand fmt-expand lock
+.PHONY: check clippy check-lock test-crate test-sync test-async expand fmt-expand lock doc
# make check
check: clippy expand fmt-expand test-crate test-sync test-async check-lock
+# make doc
+doc:
+ cargo doc --no-deps --open
+
# make lock
lock:
for f in doc/usage/*_expand.rs; do \