]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
man: silence autoconf warnings
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 17 Feb 2024 16:01:26 +0000 (16:01 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 Feb 2024 21:40:16 +0000 (15:40 -0600)
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>
man/Makefile.am
man/depmod.8.xml [moved from man/depmod.xml with 100% similarity]
man/depmod.d.5.xml [moved from man/depmod.d.xml with 100% similarity]
man/insmod.8.xml [moved from man/insmod.xml with 100% similarity]
man/kmod.8.xml [moved from man/kmod.xml with 100% similarity]
man/lsmod.8.xml [moved from man/lsmod.xml with 100% similarity]
man/modinfo.8.xml [moved from man/modinfo.xml with 100% similarity]
man/modprobe.8.xml [moved from man/modprobe.xml with 100% similarity]
man/modprobe.d.5.xml [moved from man/modprobe.d.xml with 100% similarity]
man/modules.dep.5.xml [moved from man/modules.dep.xml with 100% similarity]
man/rmmod.8.xml [moved from man/rmmod.xml with 100% similarity]

index f550091a216a00eee1d64383c052539871a969fd..d62ff21c799ff734d2392ae76d147080f807b17b 100644 (file)
@@ -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)
similarity index 100%
rename from man/depmod.xml
rename to man/depmod.8.xml
similarity index 100%
rename from man/depmod.d.xml
rename to man/depmod.d.5.xml
similarity index 100%
rename from man/insmod.xml
rename to man/insmod.8.xml
similarity index 100%
rename from man/kmod.xml
rename to man/kmod.8.xml
similarity index 100%
rename from man/lsmod.xml
rename to man/lsmod.8.xml
similarity index 100%
rename from man/modinfo.xml
rename to man/modinfo.8.xml
similarity index 100%
rename from man/modprobe.xml
rename to man/modprobe.8.xml
similarity index 100%
rename from man/modprobe.d.xml
rename to man/modprobe.d.5.xml
similarity index 100%
rename from man/modules.dep.xml
rename to man/modules.dep.5.xml
similarity index 100%
rename from man/rmmod.xml
rename to man/rmmod.8.xml