Commit 7e83ca7a authored by Miroslav Shaltev's avatar Miroslav Shaltev
Browse files

add doxygen support

parent 4f3a80ae
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
EXTRA_DIST = autogen.sh
\ No newline at end of file
SUBDIRS = \
src \
docs
EXTRA_DIST = autogen.sh docs/html
\ No newline at end of file
......@@ -12,6 +12,7 @@ AC_PROG_RANLIB
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_INIT_AUTOMAKE
AC_CHECK_LIB([m], [sin])
......@@ -21,6 +22,23 @@ AC_CHECK_HEADERS([limits.h stdlib.h unistd.h])
AC_FUNC_ERROR_AT_LINE
AC_CHECK_FUNCS([floor pow sqrt])
AC_CHECK_PROGS([DOXYGEN],[doxygen])
if test "x$DOXYGEN" = "xtrue"; then
AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
fi
AC_CHECK_PROGS([DOT],[dot])
if test "x$DOT" = "xtrue"; then
AC_MSG_WARN([dot not found - install graphviz for more fancier documentation])
fi
AM_CONDITIONAL([HAVE_DOXYGEN],[test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile])])
NOMAD_ENABLE_MPI
MPI_ENABLE_VAL="`eval test x$mpi = xtrue && echo "ENABLED"||echo "DISABLED"`"
AM_CONDITIONAL([MPI_ENABLED],[test "$MPI_ENABLE_VAL" = "ENABLED"])
......@@ -34,5 +52,5 @@ fi
NOMAD_ENABLE_MODULE([MPI],[mpi])
AC_PROG_CPP
AC_CONFIG_FILES([Makefile src/Makefile nomad.pc nomadmpi.pc])
AC_CONFIG_FILES([Makefile src/Makefile docs/Makefile nomad.pc nomadmpi.pc])
AC_OUTPUT
This diff is collapsed.
if HAVE_DOXYGEN
directory = $(top_srcdir)/docs
$(directory)/html: doxyfile.stamp
doxyfile.stamp:
$(DOXYGEN) Doxyfile
echo Timestamp > doxyfile.stamp
CLEANFILES = doxyfile.stamp
docsdir = $(datadir)/docs/@PACKAGE@/html
docs_DATA = $(directory)/html/*.html \
$(directory)/html/*.png \
$(directory)/html/*.css \
$(directory)/html/*.jpg \
$(directory)/html/*.m* \
$(directory)/html/*.js
sdocsdir = $(datadir)/docs/@PACKAGE@/html/search
sdocs_DATA = $(directory)/html/search/*.html \
$(directory)/html/search/*.png \
$(directory)/html/search/*.css \
$(directory)/html/search/*.js
all-local: doxyfile.stamp
clean-local:
rm -rf $(top_srcdir)/docs/html
endif
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment