Sophie

Sophie

distrib > Mageia > 3 > x86_64 > by-pkgid > d2855e9970bf9a8259f08fe181d69f9d > files > 11

gnome-chemistry-utils-devel-0.14.2-1.mga3.x86_64.rpm

EXTRA_DIST = html-upstream.tar.gz

CLEANFILES = html_stamp Doxyfile.bak

DISTCLEANFILES = Doxyfile

MAINTAINERCLEANFILES = Makefile.in

EXTRA_DIST += images/gccvleaf.png  images/gcpfontsel.png


# better use the docdir/htmldir variable, configurable via --docdir|--htmldir?
# htmldir = $(datadir)/doc/gchemutils/@GCU_API_VER@/reference
# html_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