From: Mark Wooding Date: Sat, 5 Sep 2020 13:46:13 +0000 (+0100) Subject: Makefile.m4 (run_latex): Make the formatting command be a parameter. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mdwtools/commitdiff_plain/f80a2d4b4d98145f3a715e09d0f7f329b8deea3d?ds=inline Makefile.m4 (run_latex): Make the formatting command be a parameter. --- diff --git a/Makefile.m4 b/Makefile.m4 index 6df673e..b87d514 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -65,14 +65,14 @@ SUFFIXES = .dtx .tex .dvi .ps 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.*/