Fixed issue with HAVE_DOXYGEN define

This commit is contained in:
Jaap Versteegh 2017-12-13 13:05:45 +01:00
parent 4bcdc8dad9
commit 0874edfdf8
2 changed files with 22 additions and 9 deletions

View File

@ -435,6 +435,10 @@ char string[16];
] ]
) )
AC_PATH_PROG([DOXYGEN], [doxygen], [])
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], AC_CONFIG_FILES([doc/Doxyfile]))
#AC_CONFIG_FILES([Makefile]) #AC_CONFIG_FILES([Makefile])
AC_OUTPUT(Makefile bin/Makefile man/Makefile) AC_OUTPUT(Makefile bin/Makefile man/Makefile)

View File

@ -1,15 +1,24 @@
#if HAVE_DOXYGEN
directory = $(top_srcdir)/doc directory = $(top_srcdir)/doc
$(directory)/html: Doxyfile if HAVE_DOXYGEN
$(DOXYGEN) Doxyfile
all-local: $(directory)/html doxygen-build.stamp: Doxyfile
$(DOXYGEN) Doxyfile
touch $@
else
doxygen-build.stamp:
@echo "*** Doxygen not found. Documentation will not be build."
touch $@
endif
all-local: doxygen-build.stamp
clean-local: clean-local:
rm -rf $(directory)/html rm -f doxygen-build.stamp
rm -rf $(directory)/man rm -rf html
rm -rf $(directory)/xml rm -rf man
rm -rf xml
#endif