Now we get to reclaim the initial tabs.
## `.aux' files) from interfering with each other. The `\jobname' isn't
## enough, because we might be building DVI and PDF versions of the same
## document at the same time.
## `.aux' files) from interfering with each other. The `\jobname' isn't
## enough, because we might be building DVI and PDF versions of the same
## document at the same time.
-run-latex = \
- rm -rf t.$@/ && mkdir t.$@/ && cd t.$@/ && \
- TEXINPUTS=..:$$TEXINPUTS && export TEXINPUTS && \
- $1 "\def\indexing{n} \nonstopmode \input $<" $(v_null) && \
- $1 "\def\indexing{y} \nonstopmode \input $<" $(v_null) && \
- makeindex $(v_quiet) -s gind.ist $*.idx $(v_null) && \
- $1 "\def\indexing{n} \nonstopmode \input $<" $(v_null) && \
- mv $@ $*.log ../ && cd ../ && rm -rf t.$@/
+define run-latex
+rm -rf t.$@/ && mkdir t.$@/ && cd t.$@/ && \
+TEXINPUTS=..:$$TEXINPUTS && export TEXINPUTS && \
+$1 "\def\indexing{n} \nonstopmode \input $<" $(v_null) && \
+$1 "\def\indexing{y} \nonstopmode \input $<" $(v_null) && \
+makeindex $(v_quiet) -s gind.ist $*.idx $(v_null) && \
+$1 "\def\indexing{n} \nonstopmode \input $<" $(v_null) && \
+mv $@ $*.log ../ && cd ../ && rm -rf t.$@/
+endef
clean::; rm -rf t.*/
## Good old-fashioned DVI.
clean::; rm -rf t.*/
## Good old-fashioned DVI.