all: rust.pdf rust.html

%.pdf: %.texi
	texi2pdf $<

%.html: %.texi
	makeinfo --html --ifhtml --force --no-split --output=$@ $<

clean:
	rm -f rust.aux rust.cp rust.fn rust.ky rust.log rust.pdf \
          rust.html rust.pg rust.toc rust.tp rust.vr