|
|
|
@ -543,20 +543,12 @@ AC_DEFUN([AX_USE_SCRIPTS], [ |
|
|
|
|
AC_CONFIG_FILES([scripts/makefile]) |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# use this in configure.ac to support PlantUML in Doxygen generation |
|
|
|
|
AC_DEFUN([AX_USE_PLANTUML], [ |
|
|
|
|
if test -f "${srcdir}/doc/plantuml.jar"; then |
|
|
|
|
PLANTUML="doc/plantuml.jar" |
|
|
|
|
AX_SUBST(PLANTUML) |
|
|
|
|
fi |
|
|
|
|
AM_CONDITIONAL(HAVE_PLANTUML, test -n "$PLANTUML") |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# use this in configure.ac to support Doxygen documentation generation |
|
|
|
|
AC_DEFUN([AX_USE_DOXYGEN], [ |
|
|
|
|
AC_CHECK_PROG(have_doxygen, doxygen, yes, no) |
|
|
|
|
AC_CHECK_PROG(have_dot, dot, yes, no) |
|
|
|
|
AC_CHECK_PROG(have_mscgen, mscgen, yes, no) |
|
|
|
|
AM_CONDITIONAL(NEED_PLANTUML, test "$have_doxygen" = "yes" -a "1.8.11" != $((echo "1.8.11"; doxygen -v) | sort -V | head -1)) |
|
|
|
|
PDF_DOC=${PACKAGE_NAME}-${PACKAGE_VERSION}.pdf |
|
|
|
|
AC_SUBST(PDF_DOC) |
|
|
|
|
if test "$have_doxygen" = "no"; then |
|
|
|
@ -581,14 +573,25 @@ AC_DEFUN([AX_USE_DOXYGEN], [ |
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([.PHONY], [pdf gen-uml-images], [doc/makefile.in]) |
|
|
|
|
test -f doc/makefile.in && cat >> doc/makefile.in <<EOF |
|
|
|
|
#### Begin: Appended by $0 |
|
|
|
|
doc: doxyfile |
|
|
|
|
doc: doxyfile @NEED_PLANTUML_TRUE@ den-uml-images |
|
|
|
|
doxygen doxyfile |
|
|
|
|
@PEDANTIC_TRUE@ test \! -s doxygen.errors |
|
|
|
|
|
|
|
|
|
@NEED_PLANTUML_TRUE@EXTRA_DIST = ${EXTRA_DIST} plantuml.jar |
|
|
|
|
@NEED_PLANTUML_TRUE@ |
|
|
|
|
@NEED_PLANTUML_TRUE@gen-uml-images: |
|
|
|
|
@NEED_PLANTUML_TRUE@ test -d gen-uml-images || mkdir gen-uml-images |
|
|
|
|
@NEED_PLANTUML_TRUE@ eval \$\$(sed -n 's, *INPUT *\\(+\\?\\)= *\\(.*\\),INPUT\\1=" \\2",gp' doxyfile); \\ |
|
|
|
|
@NEED_PLANTUML_TRUE@ eval \$\$(sed -n 's, *FILE_PATTERNS *\\(+\\?\\)= *\\(.*\\),FILE_PATTERNS\\1=" \\2",gp' doxyfile); \\ |
|
|
|
|
@NEED_PLANTUML_TRUE@ SOURCES="**.("\$\$(echo \$\${FILE_PATTERNS} | sed 's,*.,,g;s, ,|,g')")"; \\ |
|
|
|
|
@NEED_PLANTUML_TRUE@ for src in \$\$INPUT; do \\ |
|
|
|
|
@NEED_PLANTUML_TRUE@ java -Djava.awt.headless=true -jar \${top_srcdir}/doc/plantuml.jar -v -o \$\$(pwd)/gen-uml-images "\$\$src/\$\$SOURCES"; \\ |
|
|
|
|
@NEED_PLANTUML_TRUE@ done |
|
|
|
|
|
|
|
|
|
clean-documentation: |
|
|
|
|
-rm doxygen.errors @PDF_DOC@ |
|
|
|
|
-rm doxygen.errors @PDF_DOC@ @NEED_PLANTUML_TRUE@ gen-uml-images |
|
|
|
|
distclean-documentation: |
|
|
|
|
-rm -r html gen-uml-images |
|
|
|
|
-rm -r html |
|
|
|
|
-rm @PACKAGE_NAME@.doxytag |
|
|
|
|
maintainer-clean-documentation: |
|
|
|
|
-rm makefile.in |
|
|
|
|