[pve-devel] [PATCH docs 3/4] pve-doc-generator: add rules for API verification

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Oct 17 13:01:59 CEST 2018


since API verification happens in the same places as man page and bash
completion generation, and is identical across the board.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
note: patterned rules cannot be made phony, but since this is supposed to be
called from 'check' which is supposed to be phony it does not matter much.

 pve-doc-generator.mk.in | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/pve-doc-generator.mk.in b/pve-doc-generator.mk.in
index 0176d85..9ff8eeb 100644
--- a/pve-doc-generator.mk.in
+++ b/pve-doc-generator.mk.in
@@ -53,6 +53,14 @@ endif
 	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
 	mv $@.tmp $@
 
+%.service-api-verified:
+	perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->verify_api();"
+	touch $@
+
+%.api-verified:
+	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->verify_api();"
+	touch $@
+
 %-plain.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
 	${ASCIIDOC_PVE} compile-wiki -o $@ $*.adoc
 
-- 
2.19.1





More information about the pve-devel mailing list