The recent change
f76fbef37b2af3292764729f496f578037cdc314 to
`sverb.dtx' prevents parallel formatting of /different/ documents from
interfering with each other, but I want to build PDF documents using
PDFTeX rather than going via `dvips' and `ps2pdf', and the two parallel
builds of the /same/ documents will still have the same `\jobname' and
therefore will fight over all kinds of temporary files -- not just the
demo files, but `.aux', `.toc', and everything.
pkgdoc_DATA = $(DVI) $(PS) $(PDF)
SUFFIXES = .dtx .tex .dvi .ps
pkgdoc_DATA = $(DVI) $(PS) $(PDF)
SUFFIXES = .dtx .tex .dvi .ps
-define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
- latex "\def\indexing{y} \nonstopmode \input $<"
- makeindex -s gind.ist $`'*.idx
- latex "\def\indexing{n} \nonstopmode \input $<"')
+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 $<" && \
+ makeindex -s gind.ist $`'*.idx && \
+ latex "\def\indexing{n} \nonstopmode \input $<" && \
+ mv $`'@ ../ && cd ../ && rm -rf t.$`'@/')
.dtx.dvi:; run_latex
.tex.dvi:; run_latex
.dvi.ps:; dvips -e0 -o $@ $<
.ps.pdf:; ps2pdf $< $@
.dtx.dvi:; run_latex
.tex.dvi:; run_latex
.dvi.ps:; dvips -e0 -o $@ $<
.ps.pdf:; ps2pdf $< $@
+clean-local::; rm -rf t.*/
$(DVI): gpl.tex $(OBJ) mdwtools.tex
$(DVI): gpl.tex $(OBJ) mdwtools.tex