mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added --with-rdoc option
New option to direct formats of RDoc to install.
This commit is contained in:
parent
4fae3c3fb0
commit
65ce14e7b5
1 changed files with 14 additions and 2 deletions
16
configure.ac
16
configure.ac
|
@ -3321,18 +3321,30 @@ CAPITARGET=""
|
||||||
AC_ARG_ENABLE(install-doc,
|
AC_ARG_ENABLE(install-doc,
|
||||||
AS_HELP_STRING([--disable-install-doc], [do not install either rdoc indexes or C API documents during install]),
|
AS_HELP_STRING([--disable-install-doc], [do not install either rdoc indexes or C API documents during install]),
|
||||||
[install_doc=$enableval], [install_doc=yes])
|
[install_doc=$enableval], [install_doc=yes])
|
||||||
|
AC_ARG_WITH(rdoc,
|
||||||
|
AS_HELP_STRING([--with-rdoc=ri,html], [comma/space separated list of RDoc formats to install]),
|
||||||
|
[install_rdoc=`echo ,$withval, | sed 'y/,/ /;s/ ri / rdoc /;s/^ *//;s/ *$//'`], [
|
||||||
AC_ARG_ENABLE(install-rdoc,
|
AC_ARG_ENABLE(install-rdoc,
|
||||||
AS_HELP_STRING([--disable-install-rdoc], [do not install rdoc indexes during install]),
|
AS_HELP_STRING([--disable-install-rdoc], [do not install rdoc indexes during install]),
|
||||||
[install_rdoc=$enableval], [install_rdoc=yes])
|
[install_rdoc=$enableval], [install_rdoc=yes])
|
||||||
|
])
|
||||||
AC_ARG_ENABLE(install-capi,
|
AC_ARG_ENABLE(install-capi,
|
||||||
AS_HELP_STRING([--disable-install-capi], [do not install C API documents during install]),
|
AS_HELP_STRING([--disable-install-capi], [do not install C API documents during install]),
|
||||||
[install_capi=$enableval], [install_capi=no])
|
[install_capi=$enableval], [install_capi=no])
|
||||||
|
|
||||||
AS_IF([test "$install_doc" != no], [
|
AS_IF([test "$install_doc" != no], [
|
||||||
AS_IF([test "$install_rdoc" != no], [
|
AS_CASE(["$install_rdoc"],
|
||||||
|
[yes], [
|
||||||
RDOCTARGET="rdoc"
|
RDOCTARGET="rdoc"
|
||||||
], [
|
],
|
||||||
|
[all], [
|
||||||
|
RDOCTARGET="rdoc html"
|
||||||
|
],
|
||||||
|
[no|''], [
|
||||||
RDOCTARGET="nodoc"
|
RDOCTARGET="nodoc"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
RDOCTARGET="$install_rdoc"
|
||||||
])
|
])
|
||||||
AS_IF([test "$install_capi" != no -a -n "$DOXYGEN"], [
|
AS_IF([test "$install_capi" != no -a -n "$DOXYGEN"], [
|
||||||
CAPITARGET="capi"
|
CAPITARGET="capi"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue