summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-01-12 11:48:21 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-01-12 14:21:22 -0200
commit904b57d022b0187bc5c6eeeacf2d5bf566ca8881 (patch)
tree865e2a67b9adedb4914005ddba919d004c9c6e90
parent5b24df2ffc7673520331ee4b0c592065bd116733 (diff)
downloadkmod-904b57d022b0187bc5c6eeeacf2d5bf566ca8881.tar.gz
kmod-904b57d022b0187bc5c6eeeacf2d5bf566ca8881.tar.bz2
kmod-904b57d022b0187bc5c6eeeacf2d5bf566ca8881.zip
build-sys: build man pages
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--man/.gitignore2
-rw-r--r--man/Makefile.am13
4 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 42818ea..daf6144 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 dcb8795..fe2e8f1 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 0000000..bc0cce8
--- /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 0000000..c689178
--- /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 $<