doc/: Add Makefile.am for building and installing the manual page(s).
[routeros-api.git] / doc / Makefile.am
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) $< >$@