X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.am;h=d6e0a24619ae456674a9715fc7189928dd274016;hb=cdd5f93d5c8b51d8e80e2ccf45f1f4a90c79f6a6;hp=80e40530ae5b8615b9f60e05e8a1b5254fcc98f0;hpb=5cac23de1963880d8fb3aed4be47ec2894cf520c;p=miniexpect.git diff --git a/Makefile.am b/Makefile.am index 80e4053..d6e0a24 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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