blob: 11514d52a1904a13303b299c1a8b5b64c1f05388 [file] [log] [blame]
Lucas De Marchic0bcb672012-01-12 13:34:09 -02001MAN5 = depmod.d.5 modprobe.d.5 modules.dep.5
Marco d'Itri66f4f682014-09-17 05:12:27 +02002MAN8 = kmod.8 depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8
Gustavo Sverzut Barbierif4ac4a02012-01-31 22:16:47 -02003MAN_STUB = modules.dep.bin.5
Lucas De Marchi904b57d2012-01-12 11:48:21 -02004
Lucas De Marchieb978f12013-04-21 16:33:54 -03005AM_V_XSLT = $(AM_V_XSLT_$(V))
6AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
7AM_V_XSLT_0 = @echo " XSLT " $@;
8
Lucas De Marchi72167ba2017-02-23 18:28:27 -08009XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
10
Gustavo Sverzut Barbierif4ac4a02012-01-31 22:16:47 -020011if BUILD_TOOLS
Lucas De Marchic0bcb672012-01-12 13:34:09 -020012dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB)
Dave Reisner3e71e7e2012-02-02 17:24:03 -050013modules.dep.bin.5: modules.dep.5
Gustavo Sverzut Barbierif4ac4a02012-01-31 22:16:47 -020014endif
Lucas De Marchi904b57d2012-01-12 11:48:21 -020015
16EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml)
Dave Reisner3e71e7e2012-02-02 17:24:03 -050017CLEANFILES = $(dist_man_MANS)
18
Lucas De Marchi904b57d2012-01-12 11:48:21 -020019%.5 %.8: %.xml
Lucas De Marchi72167ba2017-02-23 18:28:27 -080020 $(AM_V_XSLT)$(XSLT) \
21 -o $@ \
22 --nonet \
23 --stringparam man.output.quietly 1 \
24 --param funcsynopsis.style "'ansi'" \
Lucas De Marchi904b57d2012-01-12 11:48:21 -020025 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<