diff options
| author | Gergely Nagy <algernon@madhouse-project.org> | 2012-04-29 10:34:04 +0200 |
|---|---|---|
| committer | Gergely Nagy <algernon@madhouse-project.org> | 2012-04-29 10:35:34 +0200 |
| commit | 7dc0d11639d5f9fd2c4d0e01ab12813a5898f596 (patch) | |
| tree | 20f303678770af6d04cb7bc8ac25a4e521a04895 | |
| parent | 6c0aa3ce24cfbe890c23c04f634cb8938d14f9f1 (diff) | |
| download | libumberlog-7dc0d11639d5f9fd2c4d0e01ab12813a5898f596.tar.gz libumberlog-7dc0d11639d5f9fd2c4d0e01ab12813a5898f596.tar.xz libumberlog-7dc0d11639d5f9fd2c4d0e01ab12813a5898f596.zip | |
Generate the manual page if rst2man is present
If rst2man is present at configure time, generate the manual page with
it, which is to be included in the dist tarball too.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .travis.yml | 2 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | lib/Makefile.am | 9 |
4 files changed, 13 insertions, 1 deletions
@@ -25,6 +25,7 @@ Makefile *.la core /lib/libumberlog.pc +/lib/umberlog.3 /t/test_perf /t/test_umberlog /debian/autoreconf.* diff --git a/.travis.yml b/.travis.yml index 305bc09..db9129c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: c -install: sudo apt-get install libjson0-dev check +install: sudo apt-get install libjson0-dev check python-docutils before_script: - ./autogen.sh script: diff --git a/configure.ac b/configure.ac index 84c3a19..a3cf642 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,7 @@ AC_PROG_RANLIB AM_PROG_CC_STDC AC_PROG_MAKE_SET PKG_PROG_PKG_CONFIG +AC_PATH_PROG([RST2MAN], [rst2man]) LT_INIT([shared]) dnl *************************************************************************** @@ -75,6 +76,7 @@ AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [package name]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [version number]) AM_CONDITIONAL(ENABLE_TESTS, [test "$enable_tests" = "1"]) +AM_CONDITIONAL(ENABLE_MANS, [test "x$RST2MAN" != "x"]) AC_OUTPUT( Makefile diff --git a/lib/Makefile.am b/lib/Makefile.am index b113810..b6b60b3 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -15,3 +15,12 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libumberlog.pc EXTRA_DIST = umberlog.rst libumberlog.ld + +if ENABLE_MANS +man3_MANS = umberlog.3 +CLEANFILES = umberlog.3 +EXTRA_DIST += umberlog.3 + +umberlog.3: umberlog.rst + $(AM_V_GEN) $(RST2MAN) $< $@ +endif |
