docs:
	rm -fr build/doc
	mkdir build/doc -p
	(cd build/doc && pythondoc.py -x -f `find ../../src -name \*.py`; \
	rm -f *.html; \
	echo '<?xml version="1.0" encoding="iso-8859-1"?>' > modules.xml; \
	echo '<modules>' >> modules.xml; \
	cat pythondoc-*.xml >> modules.xml; \
	echo '</modules>' >> modules.xml; \
	xsltproc -o modules.html ../../etc/modules.xsl modules.xml; \
	cp ../../etc/index.html .; \
	cp ../../etc/stylesheet.css .; \
	for i in pythondoc-*.xml; do echo 'Creating html doc for' $$i; xsltproc -o `basename $$i .xml`.html ../../etc/module.xsl $$i; done; \
	)

html:
	(cd build/doc; \
	 for i in pythondoc-*.xml;\
	   do echo 'Creating html doc for' $$i;\
       xsltproc -o `basename $$i .xml`.html ../../etc/module.xsl $$i;\
     done\
  )