From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> When "make doc" is called, run the check-manpages.sh. This will ensure that we have all the covered man pages whenever we build the documents. Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 544684c1c37c..b43e0aae3a96 100644 --- a/Makefile +++ b/Makefile @@ -282,7 +282,7 @@ install_pkgconfig: $(PKG_CONFIG_FILE) $(Q)$(call , $(PKG_CONFIG_FILE)) \ $(call do_install_pkgconfig_file,$(prefix)) -doc: +doc: check_doc $(Q)$(call descend,$(src)/Documentation,all) doc_clean: @@ -291,6 +291,9 @@ doc_clean: install_doc: $(Q)$(call descend,$(src)/Documentation,install) +check_doc: force + $(Q)$(src)/check-manpages.sh $(src)/Documentation + define build_uninstall_script $(Q)mkdir $(BUILD_OUTPUT)/tmp_build $(Q)$(MAKE) -C $(src) DESTDIR=$(BUILD_OUTPUT)/tmp_build/ O=$(BUILD_OUTPUT) $1 > /dev/null -- 2.34.1