define(`run_latex', `rm -rf t.$`'@/ && mkdir t.$`'@/ && \
cd t.$`'@/ && \
TEXINPUTS=..:$$TEXINPUTS && export TEXINPUTS && \
- latex "\def\indexing{n} \nonstopmode \input $<" && \
- latex "\def\indexing{y} \nonstopmode \input $<" && \
+ $1 "\def\indexing{n} \nonstopmode \input $<" && \
+ $1 "\def\indexing{y} \nonstopmode \input $<" && \
makeindex -s gind.ist $`'*.idx && \
- latex "\def\indexing{n} \nonstopmode \input $<" && \
+ $1 "\def\indexing{n} \nonstopmode \input $<" && \
mv $`'@ ../ && cd ../ && rm -rf t.$`'@/')
-.dtx.dvi:; run_latex
-.tex.dvi:; run_latex
+.dtx.dvi:; run_latex(`latex')
+.tex.dvi:; run_latex(`latex')
.dvi.ps:; dvips -e0 -o $@ $<
.ps.pdf:; ps2pdf $< $@
clean-local::; rm -rf t.*/