diff --git a/doc/Makefile b/doc/Makefile index 0c90b195e..75e5fbdb1 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -93,10 +93,14 @@ doc-all: $(MANPAGES) doc/index.rst SCHEMAS := $(wildcard doc/schemas/*.json) check-fmt-schemas: $(SCHEMAS:%=check-fmt-schema/%) +fmt-schemas: $(SCHEMAS:%=fmt-schema/%) check-fmt-schema/%: % @jq . < "$*" > "$*".fmt && diff -u "$*" "$*.fmt" && rm "$*.fmt" +fmt-schema/%: % + @jq . < "$*" > "$*".fmt && cat "$*".fmt > "$*" && rm "$*.fmt" + check-doc: check-config-docs check-manpages check-fmt-schemas # Some manpages use a schema, so need that added.