diff mbox series

[11/11] libtracefs: Run the check-manpages.sh on building of docs

Message ID 20220223003012.1334741-12-rostedt@goodmis.org (mailing list archive)
State Accepted
Commit 68228e2a9ac28758d590486fa2817ee525c76d0f
Headers show
Series libtracefs: Add man page checks and upate man pages | expand

Commit Message

Steven Rostedt Feb. 23, 2022, 12:30 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

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@goodmis.org>
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

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