summaryrefslogtreecommitdiffstats
path: root/man/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:04:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:04:32 +0000
commit15dd0b29ea0ca32cf9b46bd0b01604fe21a60692 (patch)
tree12a4bd51c9fc8d6c7353c116cb7b0b081715a855 /man/Makefile.am
parentAdding debian version 31+20240202-2. (diff)
downloadkmod-15dd0b29ea0ca32cf9b46bd0b01604fe21a60692.tar.xz
kmod-15dd0b29ea0ca32cf9b46bd0b01604fe21a60692.zip
Merging upstream version 32.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man/Makefile.am')
-rw-r--r--man/Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index f550091..d62ff21 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -13,10 +13,10 @@ dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB)
modules.dep.bin.5: modules.dep.5
endif
-EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml)
+EXTRA_DIST = $(MAN5:%.5=%.5.xml) $(MAN8:%.8=%.8.xml)
CLEANFILES = $(dist_man_MANS)
-%.5 %.8: %.xml
+define generate_manpage
$(AM_V_XSLT)if [ '$(distconfdir)' != '/lib' ] ; then \
sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' $< ; \
else \
@@ -29,3 +29,10 @@ CLEANFILES = $(dist_man_MANS)
--stringparam man.output.quietly 1 \
--param funcsynopsis.style "'ansi'" \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl -
+endef
+
+%.5: %.5.xml
+ $(generate_manpage)
+
+%.8: %.8.xml
+ $(generate_manpage)