$(outdir)/%.tex: %.tex $(LN) $< $@ $(outdir)/%.dvi: $(outdir)/%.tex (cd $(outdir); tex \\nonstopmode \\input $(