From: Lucas De Marchi Date: Thu, 12 Jan 2012 13:48:21 +0000 (-0200) Subject: build-sys: build man pages X-Git-Tag: v4~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=904b57d022b0187bc5c6eeeacf2d5bf566ca8881;p=thirdparty%2Fkmod.git build-sys: build man pages --- diff --git a/Makefile.am b/Makefile.am index 42818ea7..daf6144b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = . libkmod/docs +SUBDIRS = . libkmod/docs man EXTRA_DIST = CLEANFILES = diff --git a/configure.ac b/configure.ac index dcb8795d..fe2e8f1f 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,7 @@ AC_C_BIGENDIAN AC_PROG_SED AC_PROG_MKDIR_P +AC_PATH_PROG([XSLTPROC], [xsltproc]) PKG_PROG_PKG_CONFIG AC_ARG_WITH([rootprefix], @@ -128,6 +129,7 @@ CC_CHECK_CFLAGS_APPEND([ \ AC_CONFIG_HEADERS(config.h) AC_CONFIG_FILES([ Makefile + man/Makefile libkmod/docs/Makefile libkmod/docs/version.xml ]) diff --git a/man/.gitignore b/man/.gitignore new file mode 100644 index 00000000..bc0cce86 --- /dev/null +++ b/man/.gitignore @@ -0,0 +1,2 @@ +*.5 +*.8 diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 00000000..c6891784 --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,13 @@ +MAN5 = depmod.d.5 +MAN8 = + +dist_man_MANS = $(MAN5) $(MAN8) + +EXTRA_DIST = $(MAN5:%.5=%.xml) $(MAN8:%.8=%.xml) +XSLTPROC_FLAGS = \ + --nonet \ + --param funcsynopsis.style "'ansi'" + +%.5 %.8: %.xml + $(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_FLAGS) \ + http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<