Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 9

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.i586.rpm

EXTRA_DIST = html-upstream.tar.gz

CLEANFILES = html_stamp Doxyfile.bak

DISTCLEANFILES = Doxyfile

MAINTAINERCLEANFILES = Makefile.in

# better use the docdir/htmldir variable, configurable via --docdir|--htmldir?
# docsdir = $(datadir)/doc/gchemutils/@GCU_API_VER@/reference
# docs_DATA = html/*.*

all: html/*.*

html/*.*: html_stamp

if DOXYGEN_AVAILABLE

html_stamp:
	$(DOXYGEN) -u Doxyfile
	$(DOXYGEN) Doxyfile
	touch $@

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