From 8cbeea02ccddb16d22cfa3b1858de86039139c54 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 9 Mar 2021 22:35:48 -0500 Subject: [PATCH] doc/man/Makefile.am: handle vtracef(3) and vtracelog(3) correctly This patch adds explicit grouped target rules to `doc/man/Makefile.am` to handle the vtracef(3) and vtracelog(3) manual page generation correctly. This patch also adds `vtracef.3` and `vtracelog.3` to the list of files to clean. Signed-off-by: Philippe Proulx Signed-off-by: Mathieu Desnoyers Change-Id: Ia91db414693f1d336933a347ada13cfd430a9e53 --- doc/man/Makefile.am | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 5aeaf664..9cee98d1 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -17,6 +17,9 @@ MAN3_NAMES = \ lttng-ust-dl \ lttng-ust-cyg-profile +# Man page aliases (generated from other sources): +MAN3_ALIASES = vtracef.3 vtracelog.3 + # troff man pages: MAN3_TROFF = do_tracepoint.3 tracepoint.3 tracepoint_enabled.3 @@ -43,7 +46,7 @@ COMMON_DEPS = $(ASCIIDOC_CONF) $(COMMON_TXT) # Man pages destinations: MAN1 = $(addsuffix .1,$(MAN1_NAMES)) -MAN3 = $(addsuffix .3,$(MAN3_NAMES)) +MAN3 = $(addsuffix .3,$(MAN3_NAMES)) $(MAN3_ALIASES) MAN = $(MAN1) $(MAN3) if MAN_PAGES_OPT @@ -78,6 +81,12 @@ XTO = $(xmlto_verbose)$(XMLTO) -m $(XSL_FILE) man %.3.xml: $(srcdir)/%.3.txt $(COMMON_DEPS) $(ADOC_DOCBOOK) -o $@ $< +tracef.3 vtracef.3 &: tracef.3.xml $(XSL_FILE) + $(XTO) $< 2>/dev/null + +tracelog.3 vtracelog.3 &: tracelog.3.xml $(XSL_FILE) + $(XTO) $< 2>/dev/null + %.3: %.3.xml $(XSL_FILE) $(XTO) $< 2>/dev/null -- 2.34.1