# Documentation.
let POD2MAN = "@POD2MAN@"
+let POD2TEXT = "@POD2TEXT@"
-goal documentation = : pod2man ("goals", "1"),
- pod2man ("Goalfile", "5")
+goal documentation = : pod2man ("goals", "1"), pod2man ("Goalfile", "5"),
+ pod2text ("goals", "1"), pod2text ("Goalfile", "5")
goal pod2man (page, section) =
"man/%page.%section" : "docs/%page.pod" {
mv %@-t %@
}
+goal pod2text (page, section) =
+"man/%page.%section.txt" : "docs/%page.pod" {
+ rm -f %@ %@-t
+ mkdir -p man
+ %POD2TEXT -u %< > %@-t
+ mv %@-t %@
+}
+
#----------------------------------------------------------------------
# Tests.
- menhir (an OCaml-based parser generator)
- - pod2man (part of Perl, for generating documentation)
+ - pod2man and pod2text (part of Perl, for generating documentation)
- autoconf and automake
AC_MSG_ERROR([pod2man tool from Perl is required])
])
+AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [
+ AC_MSG_ERROR([pod2text tool from Perl is required])
+])
+
dnl Substitute OCaml flags and packages.
AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error CDEFLMPSUVYZX+52-3"])
AC_SUBST([OCAMLPACKAGES], ["-package str,unix,threads -thread"])