forked from enlightenment/efl
parent
185d9ae9b5
commit
62ca2f49f2
|
@ -365,7 +365,7 @@ echo " Openssl..............: ${have_openssl}"
|
||||||
echo " Cipher support.....: ${have_cipher}"
|
echo " Cipher support.....: ${have_cipher}"
|
||||||
echo " Signature..........: ${have_signature}"
|
echo " Signature..........: ${have_signature}"
|
||||||
echo
|
echo
|
||||||
echo " Documentation........: ${enable_doc}"
|
echo " Documentation........: ${build_doc}"
|
||||||
echo " Tests................: ${enable_tests}"
|
echo " Tests................: ${enable_tests}"
|
||||||
echo " Coverage.............: ${enable_coverage}"
|
echo " Coverage.............: ${enable_coverage}"
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -10,8 +10,8 @@ if EFL_BUILD_DOC
|
||||||
doc-clean:
|
doc-clean:
|
||||||
rm -rf html/ latex/ man/ xml/ $(PACKAGE_DOCNAME).tar*
|
rm -rf html/ latex/ man/ xml/ $(PACKAGE_DOCNAME).tar*
|
||||||
|
|
||||||
doc: all doc-clean
|
doc: doc-clean
|
||||||
$(DOXYGEN)
|
$(efl_doxygen)
|
||||||
cp img/* html/
|
cp img/* html/
|
||||||
rm -rf $(PACKAGE_DOCNAME).tar*
|
rm -rf $(PACKAGE_DOCNAME).tar*
|
||||||
mkdir -p $(PACKAGE_DOCNAME)/doc
|
mkdir -p $(PACKAGE_DOCNAME)/doc
|
||||||
|
|
|
@ -11,52 +11,55 @@ dnl
|
||||||
AC_DEFUN([EFL_CHECK_DOXYGEN],
|
AC_DEFUN([EFL_CHECK_DOXYGEN],
|
||||||
[
|
[
|
||||||
|
|
||||||
DOXYGEN="doxygen"
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Disable the build of the documentation
|
dnl Disable the build of the documentation
|
||||||
dnl
|
dnl
|
||||||
AC_ARG_ENABLE([doc],
|
AC_ARG_ENABLE([doc],
|
||||||
AC_HELP_STRING(
|
[AC_HELP_STRING(
|
||||||
[--disable-doc],
|
[--disable-doc],
|
||||||
[Disable the build of the documentation]),
|
[Disable documentation build @<:@default=enabled@:>@])],
|
||||||
[if test "${disable_doc}" = "yes" ; then
|
[
|
||||||
enable_doc="no"
|
if test "x${enableval}" = "xyes" ; then
|
||||||
|
efl_enable_doc="yes"
|
||||||
else
|
else
|
||||||
enable_doc="yes"
|
efl_enable_doc="no"
|
||||||
fi],
|
fi
|
||||||
[enable_doc="yes"]
|
],
|
||||||
|
[efl_enable_doc="yes"]
|
||||||
)
|
)
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Specify the full file name, with path
|
dnl Specify the full file name, with path
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
|
efl_doxygen="doxygen"
|
||||||
|
|
||||||
AC_ARG_WITH([doxygen],
|
AC_ARG_WITH([doxygen],
|
||||||
AC_HELP_STRING(
|
[AC_HELP_STRING(
|
||||||
[--with-doxygen=FILE],
|
[--with-doxygen=FILE],
|
||||||
[doxygen program to use @<:@default=doxygen@:>@]),
|
[doxygen program to use @<:@default=doxygen@:>@])],
|
||||||
dnl
|
dnl
|
||||||
dnl Check the given doxygen program.
|
dnl Check the given doxygen program.
|
||||||
dnl
|
dnl
|
||||||
[DOXYGEN=${withval}
|
[DOXYGEN=${withval}
|
||||||
AC_CHECK_PROG([BUILD_DOCS],
|
AC_CHECK_PROG([efl_have_doxygen],
|
||||||
[${DOXYGEN}],
|
[${efl_doxygen}],
|
||||||
[yes],
|
[yes],
|
||||||
[no])
|
[no])
|
||||||
if test "x${BUILD_DOCS}" = "xno" ; then
|
if test "x${efl_have_doxygen}" = "xno" ; then
|
||||||
echo "WARNING:"
|
echo "WARNING:"
|
||||||
echo "The doxygen program you specified:"
|
echo "The doxygen program you specified:"
|
||||||
echo "$DOXYGEN"
|
echo "$efl_doxygen"
|
||||||
echo "was not found. Please check the path and make sure "
|
echo "was not found. Please check the path and make sure "
|
||||||
echo "the program exists and is executable."
|
echo "the program exists and is executable."
|
||||||
AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
|
AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
|
||||||
fi
|
fi
|
||||||
],
|
],
|
||||||
[AC_CHECK_PROG([BUILD_DOCS],
|
[AC_CHECK_PROG([efl_have_doxygen],
|
||||||
[${DOXYGEN}],
|
[${efl_doxygen}],
|
||||||
[yes],
|
[yes],
|
||||||
[no])
|
[no])
|
||||||
if test "x${BUILD_DOCS}" = "xno" ; then
|
if test "x${efl_have_doxygen}" = "xno" ; then
|
||||||
echo "WARNING:"
|
echo "WARNING:"
|
||||||
echo "The doxygen program was not found in your execute"
|
echo "The doxygen program was not found in your execute"
|
||||||
echo "You may have doxygen installed somewhere not covered by your path."
|
echo "You may have doxygen installed somewhere not covered by your path."
|
||||||
|
@ -73,11 +76,15 @@ AC_ARG_WITH([doxygen],
|
||||||
dnl
|
dnl
|
||||||
dnl Substitution
|
dnl Substitution
|
||||||
dnl
|
dnl
|
||||||
AC_SUBST([DOXYGEN])
|
AC_SUBST([efl_doxygen])
|
||||||
|
|
||||||
AM_CONDITIONAL(EFL_BUILD_DOC, test "x${BUILD_DOCS}" = "xyes")
|
if ! test "x${efl_have_doxygen}" = "xyes" ; then
|
||||||
|
efl_enable_doc="no"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x${BUILD_DOCS}" = "xyes" ; then
|
AM_CONDITIONAL(EFL_BUILD_DOC, test "x${efl_enable_doc}" = "xyes")
|
||||||
|
|
||||||
|
if test "x${efl_enable_doc}" = "xyes" ; then
|
||||||
ifelse([$1], , :, [$1])
|
ifelse([$1], , :, [$1])
|
||||||
else
|
else
|
||||||
ifelse([$2], , :, [$2])
|
ifelse([$2], , :, [$2])
|
||||||
|
|
Loading…
Reference in New Issue