Skip to content

Commit

Permalink
Fixed issue with HAVE_DOXYGEN define
Browse files Browse the repository at this point in the history
  • Loading branch information
jrversteegh committed Dec 13, 2017
1 parent 4bcdc8d commit 0874edf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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_OUTPUT(Makefile bin/Makefile man/Makefile)

Expand Down
25 changes: 17 additions & 8 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
#if HAVE_DOXYGEN

directory = $(top_srcdir)/doc

$(directory)/html: Doxyfile
if HAVE_DOXYGEN

doxygen-build.stamp: Doxyfile
$(DOXYGEN) Doxyfile
touch $@

else

doxygen-build.stamp:
@echo "*** Doxygen not found. Documentation will not be build."
touch $@

endif

all-local: $(directory)/html
all-local: doxygen-build.stamp

clean-local:
rm -rf $(directory)/html
rm -rf $(directory)/man
rm -rf $(directory)/xml
rm -f doxygen-build.stamp
rm -rf html
rm -rf man
rm -rf xml

#endif

0 comments on commit 0874edf

Please sign in to comment.