Lucas De Marchi | c0bcb67 | 2012-01-12 13:34:09 -0200 | [diff] [blame] | 1 | MAN5 = depmod.d.5 modprobe.d.5 modules.dep.5 |
Marco d'Itri | 66f4f68 | 2014-09-17 05:12:27 +0200 | [diff] [blame] | 2 | MAN8 = kmod.8 depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8 |
Gustavo Sverzut Barbieri | f4ac4a0 | 2012-01-31 22:16:47 -0200 | [diff] [blame] | 3 | MAN_STUB = modules.dep.bin.5 |
Lucas De Marchi | 904b57d | 2012-01-12 11:48:21 -0200 | [diff] [blame] | 4 | |
Lucas De Marchi | eb978f1 | 2013-04-21 16:33:54 -0300 | [diff] [blame] | 5 | AM_V_XSLT = $(AM_V_XSLT_$(V)) |
| 6 | AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) |
| 7 | AM_V_XSLT_0 = @echo " XSLT " $@; |
| 8 | |
Lucas De Marchi | 72167ba | 2017-02-23 18:28:27 -0800 | [diff] [blame] | 9 | XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc) |
| 10 | |
Gustavo Sverzut Barbieri | f4ac4a0 | 2012-01-31 22:16:47 -0200 | [diff] [blame] | 11 | if BUILD_TOOLS |
Lucas De Marchi | c0bcb67 | 2012-01-12 13:34:09 -0200 | [diff] [blame] | 12 | dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB) |
Dave Reisner | 3e71e7e | 2012-02-02 17:24:03 -0500 | [diff] [blame] | 13 | modules.dep.bin.5: modules.dep.5 |
Gustavo Sverzut Barbieri | f4ac4a0 | 2012-01-31 22:16:47 -0200 | [diff] [blame] | 14 | endif |
Lucas De Marchi | 904b57d | 2012-01-12 11:48:21 -0200 | [diff] [blame] | 15 | |
| 16 | EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml) |
Dave Reisner | 3e71e7e | 2012-02-02 17:24:03 -0500 | [diff] [blame] | 17 | CLEANFILES = $(dist_man_MANS) |
| 18 | |
Lucas De Marchi | 904b57d | 2012-01-12 11:48:21 -0200 | [diff] [blame] | 19 | %.5 %.8: %.xml |
Lucas De Marchi | 72167ba | 2017-02-23 18:28:27 -0800 | [diff] [blame] | 20 | $(AM_V_XSLT)$(XSLT) \ |
| 21 | -o $@ \ |
| 22 | --nonet \ |
| 23 | --stringparam man.output.quietly 1 \ |
| 24 | --param funcsynopsis.style "'ansi'" \ |
Lucas De Marchi | 904b57d | 2012-01-12 11:48:21 -0200 | [diff] [blame] | 25 | http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |