%.html: %.texinfo
texi2html --l2h $<
+# Fix texinfo HTML output
+ perl -w -n -e 'if (/<div class="contents">/) {$$toc=1}' \
+ -e 'if (!$$toc) { s/class="toc"//}; print' < $@ > $@.tmp
+ mv $@.tmp $@
clean:
rm -f $(SOURCE).{aux,cp,cps,fn,ky,log,pg,toc,tp,vr,vrs} $(PDF_FIGS)