EXTRA_DIST = html-upstream.tar.gz
CLEANFILES = html_stamp Doxyfile.bak
DISTCLEANFILES = Doxyfile
MAINTAINERCLEANFILES = Makefile.in
docsdir = $(datadir)/doc/gchemutils/reference
docs_DATA = html/*.*
html/*.*: html_stamp
if DOXYGEN_AVAILABLE
html_stamp:
$(DOXYGEN) -u Doxyfile
$(DOXYGEN) Doxyfile
touch html_stamp
html-upstream.tar.gz: html/*.*
tar -czf $@ html/*.*
else #DOXYGEN_AVAILABLE
## Make sure, that html-upstream.tar.gz exists. If not, fail.
## This will force the existance of documentation!
html_stamp: html-upstream.tar.gz
tar -xzf $<
touch html_stamp
## Fail during make dist, because the documentation cannot be created.
html-upstream.tar.gz: ; echo "Error: You need doxygen to create the documentation." && exit 1
endif #DOXYGEN_AVAILABLE
clean-local:
rm -rf html
## Make distcheck happy for maintainers as well
dist-hook:
rm -f html-upstream.tar.gz