From 6cf4ee2a42f148a9ea8bec0544b88aec4313ac12 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 25 Nov 2009 21:14:19 +0100 Subject: [PATCH] doc/: Add Makefile.am for building and installing the manual page(s). --- Makefile.am | 2 +- configure.ac | 2 +- doc/Makefile.am | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 doc/Makefile.am diff --git a/Makefile.am b/Makefile.am index af437a6..3920780 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1 @@ -SUBDIRS = src +SUBDIRS = src doc diff --git a/configure.ac b/configure.ac index dd940bf..eefe39e 100644 --- a/configure.ac +++ b/configure.ac @@ -65,4 +65,4 @@ AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [Enable extensive debuggi ], []) AM_CONDITIONAL(BUILD_WITH_DEBUG, test "x$enable_debug" = "xyes") -AC_OUTPUT(Makefile src/Makefile src/routeros_version.h) +AC_OUTPUT(Makefile doc/Makefile src/Makefile src/routeros_version.h) diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..bbb53dd --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,13 @@ +man_PODS = librouteros.pod +man_MANS = librouteros.3 + +EXTRA_DIST = $(man_MANS) $(man_PODS) + +.pod.1: + pod2man --section=1 --release=$(VERSION) --center=$(PACKAGE) $< >$@ + +.pod.3: + pod2man --section=3 --release=$(VERSION) --center=$(PACKAGE) $< >$@ + +.pod.8: + pod2man --section=8 --release=$(VERSION) --center=$(PACKAGE) $< >$@ -- 2.11.0