doxygen_configfile = Doxyfile
# beautify_docs = $(srcdir)/beautify_docs.pl

include $(top_srcdir)/doc/Makefile_web.am_fragment
web_path_reference = $(web_path_docs)reference

html/index.html: $(doxygen_configfile) $(beautify_docs)
	-rm -rf html
	if test "x$$DOXYGEN_IMAGE_PATH" = "x"; then \
	  image_dir="`pkg-config --silence-errors --variable=prefix gtk+-2.0`/share/gtk-doc/html/gtk"; \
	  if test -d "$$image_dir"; then \
	    DOXYGEN_IMAGE_PATH="$$image_dir"; \
	  else \
	    image_dir="$(top_srcdir)/../gtk+/gtk/stock-icons"; \
	    test -d "$$image_dir" && DOXYGEN_IMAGE_PATH="$$image_dir"; \
	  fi; \
	fi; \
	DOXYGEN_IMAGE_PATH="$$DOXYGEN_IMAGE_PATH" doxygen $(doxygen_configfile)
	$(PERL_PATH) $(beautify_docs) html


libsigc-reference-html.tar.gz: html/index.html
	tar cf - html | gzip -c --best >$@

libsigc-reference-html.tar.bz2: html/index.html
	tar cf - html | bzip2 -c >$@


# upload HTML tarball and extract it to http://libsigc.sourceforge.net/reference/
post-html: libsigc-reference-html.tar.bz2
	ssh $$SSH_OPT "$$USER@libsigc.sourceforge.net" \
	   'cd $(web_path_reference); \
	    cat >$(<F); \
	    bunzip2 -c $(<F) | tar xf - ; \
	    chgrp -R libsigc $(<F) html; \
	    chmod -R a+r,g+w $(<F) html' <$<


all-local: clean-local html/index.html

clean-local:
	-rm -rf html
	-rm -f libsigc-reference-html.tar.gz libsigc-reference-html.tar.bz2



syntax highlighted by Code2HTML, v. 0.9.1