# vim:ft=automake
# included from Top Level Makefile.am
# All paths should be given relative to the root

EXTRA_DIST+= doxygen/Doxyfile \
	     doxygen/header.html.in

doxygen: all
	@echo "/**" > doxygen/mainpage.h
	@echo "@mainpage README" >> doxygen/mainpage.h
	@echo "<pre>" >> doxygen/mainpage.h
	@cat ${top_srcdir}/README >> doxygen/mainpage.h
	@echo "</pre>" >> doxygen/mainpage.h
	@echo "*/" >> doxygen/mainpage.h
	${DOXYGEN} ${top_srcdir}/doxygen/Doxyfile
	@rm doxygen/mainpage.h

