Skip to content

Commit 384fa46

Browse files
committed
feat(tooling): Add developer target to build Rust API docs
1 parent 6404c53 commit 384fa46

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile.am

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,20 @@ selfcheck: | $(bin_PROGRAMS) $(_BUILT_SUBDIRS)
196196
$(PDFINFO) $$output | $(GREP) "SILE v$(VERSION)"
197197

198198
.PHONY: docs
199-
docs: $(_MANUAL) lua-api-docs
199+
docs: $(_MANUAL) lua-api-docs rust-api-docs
200200

201201
.PHONY: lua-api-docs
202202
lua-api-docs: lua-api-docs/index.html
203203

204204
lua-api-docs/index.html: build-aux/config.ld
205205
$(LDOC) -c build-aux/config.ld .
206206

207+
.PHONY: rust-api-docs
208+
rust-api-docs: rust-api-docs/doc/sile/index.html
209+
210+
rust-api-docs/doc/sile/index.html:
211+
cargo doc $(CARGO_FEATURE_ARGS) --no-deps --target-dir rust-api-docs
212+
207213
.PHONY: docs-figures
208214
docs-figures: $(FIGURES)
209215

0 commit comments

Comments
 (0)