aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2024-02-17 16:01:26 +0000
committerLucas De Marchi <lucas.de.marchi@gmail.com>2024-02-20 15:40:16 -0600
commit930a40f5184d5929b5ee1a1f5ebeb23170f21561 (patch)
tree66e98b9433f760a3b143fb0f35cfb3ee111428dd
parente98cef6f3f8cd6f8bfb26d147b2c209297453cca (diff)
downloadkmod-930a40f5184d5929b5ee1a1f5ebeb23170f21561.tar.gz
man: silence autoconf warnings
Currently we have a pattern rule, which effective states that two output files are produced - %.5 and %.8. Although that's not the case in practise, since each input xml will be generated to a single manual page. Add the manpage section as part of the xml filename and tweak the pattern (match) rule, accordingly. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Link: https://lore.kernel.org/r/20240217-autoconf-manpage-warns-v1-1-e1570cfc286e@gmail.com Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
-rw-r--r--man/Makefile.am11
-rw-r--r--man/depmod.8.xml (renamed from man/depmod.xml)0
-rw-r--r--man/depmod.d.5.xml (renamed from man/depmod.d.xml)0
-rw-r--r--man/insmod.8.xml (renamed from man/insmod.xml)0
-rw-r--r--man/kmod.8.xml (renamed from man/kmod.xml)0
-rw-r--r--man/lsmod.8.xml (renamed from man/lsmod.xml)0
-rw-r--r--man/modinfo.8.xml (renamed from man/modinfo.xml)0
-rw-r--r--man/modprobe.8.xml (renamed from man/modprobe.xml)0
-rw-r--r--man/modprobe.d.5.xml (renamed from man/modprobe.d.xml)0
-rw-r--r--man/modules.dep.5.xml (renamed from man/modules.dep.xml)0
-rw-r--r--man/rmmod.8.xml (renamed from man/rmmod.xml)0
11 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)
diff --git a/man/depmod.xml b/man/depmod.8.xml
index fce2a4a..fce2a4a 100644
--- a/man/depmod.xml
+++ b/man/depmod.8.xml
diff --git a/man/depmod.d.xml b/man/depmod.d.5.xml
index b07e6a2..b07e6a2 100644
--- a/man/depmod.d.xml
+++ b/man/depmod.d.5.xml
diff --git a/man/insmod.xml b/man/insmod.8.xml
index 3ebdccd..3ebdccd 100644
--- a/man/insmod.xml
+++ b/man/insmod.8.xml
diff --git a/man/kmod.xml b/man/kmod.8.xml
index 0706ad5..0706ad5 100644
--- a/man/kmod.xml
+++ b/man/kmod.8.xml
diff --git a/man/lsmod.xml b/man/lsmod.8.xml
index 588f228..588f228 100644
--- a/man/lsmod.xml
+++ b/man/lsmod.8.xml
diff --git a/man/modinfo.xml b/man/modinfo.8.xml
index b6c4d60..b6c4d60 100644
--- a/man/modinfo.xml
+++ b/man/modinfo.8.xml
diff --git a/man/modprobe.xml b/man/modprobe.8.xml
index 4d1fd59..4d1fd59 100644
--- a/man/modprobe.xml
+++ b/man/modprobe.8.xml
diff --git a/man/modprobe.d.xml b/man/modprobe.d.5.xml
index 2bf6537..2bf6537 100644
--- a/man/modprobe.d.xml
+++ b/man/modprobe.d.5.xml
diff --git a/man/modules.dep.xml b/man/modules.dep.5.xml
index 8ef6d8b..8ef6d8b 100644
--- a/man/modules.dep.xml
+++ b/man/modules.dep.5.xml
diff --git a/man/rmmod.xml b/man/rmmod.8.xml
index 67bcbed..67bcbed 100644
--- a/man/rmmod.xml
+++ b/man/rmmod.8.xml