1 MAN5 = depmod.d.5 modprobe.d.5 modules.dep.5 2 MAN8 = kmod.8 depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8 3 MAN_STUB = modules.dep.bin.5 4 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 9 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc) 10 11 if BUILD_TOOLS 12 dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB) 13 modules.dep.bin.5: modules.dep.5 14 endif 15 16 EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml) 17 CLEANFILES = $(dist_man_MANS) 18 19 %.5 %.8: %.xml 20 $(AM_V_XSLT)$(XSLT) \ 21 -o $@ \ 22 --nonet \ 23 --stringparam man.output.quietly 1 \ 24 --param funcsynopsis.style "'ansi'" \ 25 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< 26