• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1MAN5 = depmod.d.5 modprobe.d.5 modules.dep.5
2MAN8 = kmod.8 depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8
3MAN_STUB = modules.dep.bin.5
4
5AM_V_XSLT = $(AM_V_XSLT_$(V))
6AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
7AM_V_XSLT_0 = @echo "  XSLT    " $@;
8
9XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
10
11if BUILD_TOOLS
12dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB)
13modules.dep.bin.5: modules.dep.5
14endif
15
16EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml)
17CLEANFILES = $(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