all: manuscript.dvi

manuscript.dvi: manuscript.gls manuscript.ind
	latex manuscript.drv

manuscript.gls: manuscript.glo
	makeindex -s gglo -o manuscript.gls manuscript.glo

manuscript.ind: manuscript.idx
	makeindex -s gind manuscript

manuscript.glo: manuscript.drv
	latex manuscript.drv

manuscript.idx: manuscript.drv
	latex manuscript.drv

manuscript.drv: manuscript.dtx manuscript.ins
	latex manuscript.ins