]> git.ipfire.org Git - thirdparty/kmod.git/blame - man/Makefile.am
libkmod, depmod, modprobe: Make directory for kernel modules configurable
[thirdparty/kmod.git] / man / Makefile.am
CommitLineData
c0bcb670 1MAN5 = depmod.d.5 modprobe.d.5 modules.dep.5
66f4f680 2MAN8 = kmod.8 depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8
f4ac4a0b 3MAN_STUB = modules.dep.bin.5
904b57d0 4
eb978f10
LDM
5AM_V_XSLT = $(AM_V_XSLT_$(V))
6AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
7AM_V_XSLT_0 = @echo " XSLT " $@;
8
72167ba1
LDM
9XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
10
f4ac4a0b 11if BUILD_TOOLS
c0bcb670 12dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB)
3e71e7e7 13modules.dep.bin.5: modules.dep.5
f4ac4a0b 14endif
904b57d0
LDM
15
16EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml)
3e71e7e7
DR
17CLEANFILES = $(dist_man_MANS)
18
904b57d0 19%.5 %.8: %.xml
8463809f
MS
20 $(AM_V_XSLT)if [ '$(distconfdir)' != '/lib' ] ; then \
21 sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' $< ; \
22 else \
23 sed -e '/@DISTCONFDIR@/d' $< ; \
24 fi | \
9d1fb317 25 sed -e 's|@MODULE_DIRECTORY@|$(module_directory)|g' | \
8463809f 26 $(XSLT) \
72167ba1
LDM
27 -o $@ \
28 --nonet \
29 --stringparam man.output.quietly 1 \
30 --param funcsynopsis.style "'ansi'" \
8463809f 31 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl -