summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2017-02-23 18:28:27 -0800
committerLucas De Marchi <lucas.demarchi@intel.com>2017-02-23 18:31:15 -0800
commit72167ba113c00eea6eb73cd91ce173e5c734564b (patch)
tree8145ffe269d73406651c1417e21217d4b9016880
parent527658ad8964b1c9d9e1332b3253a9066f3eb189 (diff)
downloadkmod-72167ba113c00eea6eb73cd91ce173e5c734564b.tar.gz
kmod-72167ba113c00eea6eb73cd91ce173e5c734564b.zip
man: make error message clearer for missing xstlproc
We can't do at configure phase since we actually ship the built man pages with dist, so it's fine not having xsltproc if building from dist. If building from the repository, it's better to have have a better message saying xsltproc was not found than trying to execute the argument to xsltproc. Now message is: XSLT depmod.d.5 /bin/sh: line 1: xsltproc: command not found Instead of: XSLT depmod.d.5 /bin/sh: --nonet: command not found
-rw-r--r--man/Makefile.am14
1 files changed, 7 insertions, 7 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 1c53f63..11514d5 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -6,20 +6,20 @@ AM_V_XSLT = $(AM_V_XSLT_$(V))
AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
AM_V_XSLT_0 = @echo " XSLT " $@;
+XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
+
if BUILD_TOOLS
dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB)
modules.dep.bin.5: modules.dep.5
endif
EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml)
-
-XSLTPROC_FLAGS = \
- --nonet \
- --stringparam man.output.quietly 1 \
- --param funcsynopsis.style "'ansi'"
-
CLEANFILES = $(dist_man_MANS)
%.5 %.8: %.xml
- $(AM_V_XSLT)$(XSLTPROC) $(XSLTPROC_FLAGS) \
+ $(AM_V_XSLT)$(XSLT) \
+ -o $@ \
+ --nonet \
+ --stringparam man.output.quietly 1 \
+ --param funcsynopsis.style "'ansi'" \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<