Minor updates to the manual page.
[miniexpect.git] / Makefile.am
index 80e4053..d6e0a24 100644 (file)
@@ -17,7 +17,7 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
-EXTRA_DIST =
+EXTRA_DIST = miniexpect.3
 
 # The library.
 
@@ -48,3 +48,21 @@ test_spawn_LDADD = libminiexpect.la
 # Clean.
 
 CLEANFILES = *~
+
+# Man pages.
+
+man_MANS = miniexpect.3
+
+if HAVE_POD2MAN
+
+CLEANFILES += miniexpect.3
+
+miniexpect.3: miniexpect.pod
+       $(POD2MAN) \
+         --section 3 \
+         --release "$(PACKAGE)-$(VERSION)" \
+         -c "Library functions" \
+         $< > $@-t
+       mv $@-t $@
+
+endif