From 11c94528b3cfa06a7b77cda5deb00f4169b60f6d Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Sat, 5 Feb 2022 14:38:18 +0100 Subject: [PATCH] doc: reintroduce the fmt command to fmt the schema Signed-off-by: Vincenzo Palazzo --- doc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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.