doc/: Add Makefile.am for building and installing the manual page(s).
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 25 Nov 2009 20:14:19 +0000 (21:14 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 25 Nov 2009 20:14:19 +0000 (21:14 +0100)
Makefile.am
configure.ac
doc/Makefile.am [new file with mode: 0644]

index af437a6..3920780 100644 (file)
@@ -1 +1 @@
-SUBDIRS = src
+SUBDIRS = src doc
index dd940bf..eefe39e 100644 (file)
@@ -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 (file)
index 0000000..bbb53dd
--- /dev/null
@@ -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) $< >$@