+# SPDX-License-Identifier: GPL-2.0-only
+
# Man pages are only built if they are enabled at configure time.
#
# They should always be built before creating a distribution tarball.
lttng-disable-event \
lttng-crash \
lttng-metadata \
- lttng-regenerate
+ lttng-regenerate \
+ lttng-rotate \
+ lttng-enable-rotation \
+ lttng-disable-rotation \
+ lttng-clear
MAN3_NAMES =
MAN8_NAMES = lttng-sessiond lttng-relayd
MAN1_NO_ASCIIDOC_NAMES =
# config
ASCIIDOC_CONF = $(srcdir)/asciidoc.conf
ASCIIDOC_ATTRS_CONF = $(builddir)/asciidoc-attrs.conf
-XSL_FILES = \
- manpage.xsl \
- manpage-callouts.xsl \
- manpage-bold-literal.xsl \
- manpage-links.xsl
-XSL_SRC_FILES = $(addprefix $(srcdir)/xsl/,$(XSL_FILES))
+XSL_FILE = $(srcdir)/manpage.xsl
# common dependencies
COMMON_DEPS = $(ASCIIDOC_CONF) $(COMMON_TXT)
# tools
ADOC = $(asciidoc_verbose)$(ASCIIDOC) -f $(ASCIIDOC_CONF) -f $(ASCIIDOC_ATTRS_CONF) -d manpage
ADOC_DOCBOOK = $(ADOC) -b docbook
-XTO = $(xmlto_verbose)$(XMLTO) -m $(firstword $(XSL_SRC_FILES)) man
+XTO = $(xmlto_verbose)$(XMLTO) -m $(XSL_FILE) man
# only add this dependency if we can build the man pages because it's
# a file generated by the configure script, so it's more recent than
%.1.xml: $(srcdir)/%.1.txt $(COMMON_DEPS)
$(ADOC_DOCBOOK) -o $@ $<
-%.1: %.1.xml $(XSL_SRC_FILES)
+%.1: %.1.xml $(XSL_FILE)
$(XTO) $< 2>/dev/null
%.3.xml: $(srcdir)/%.3.txt $(COMMON_DEPS)
$(ADOC_DOCBOOK) -o $@ $<
-%.3: %.3.xml $(XSL_SRC_FILES)
+%.3: %.3.xml $(XSL_FILE)
$(XTO) $< 2>/dev/null
%.8.xml: $(srcdir)/%.8.txt $(COMMON_DEPS)
$(ADOC_DOCBOOK) -o $@ $<
-%.8: %.8.xml $(XSL_SRC_FILES)
+%.8: %.8.xml $(XSL_FILE)
$(XTO) $< 2>/dev/null
# only clean the generated files if we have the tools to generate them again
endif # !MAN_PAGES_OPT
# always distribute the source files
-EXTRA_DIST = $(MAN_TXT) $(COMMON_TXT) $(XSL_SRC_FILES) \
+EXTRA_DIST = $(MAN_TXT) $(COMMON_TXT) $(XSL_FILE) \
$(ASCIIDOC_CONF) $(ASCIIDOC_ATTRS_CONF).in
# keep generated man pages that can be considered intermediate files