doc/man/Makefile.am: handle vtracef(3) and vtracelog(3) correctly
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 10 Mar 2021 03:35:48 +0000 (22:35 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Mar 2021 15:04:17 +0000 (10:04 -0500)
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 <eeppeliteloop@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia91db414693f1d336933a347ada13cfd430a9e53

doc/man/Makefile.am

index 5aeaf664a4dad79f2b6291fb2f59d2b614d442c1..9cee98d13d163aa69bca82d74fc96f8f29982607 100644 (file)
@@ -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
 
This page took 0.025731 seconds and 4 git commands to generate.