From: Florian Forster Date: Wed, 25 Nov 2009 20:14:19 +0000 (+0100) Subject: doc/: Add Makefile.am for building and installing the manual page(s). X-Git-Tag: librouteros-0.1.0~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6cf4ee2a42f148a9ea8bec0544b88aec4313ac12;p=routeros-api.git doc/: Add Makefile.am for building and installing the manual page(s). --- 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) $< >$@