Makefile.m4 (run_latex): Make the formatting command be a parameter.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 5 Sep 2020 13:46:13 +0000 (14:46 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2020 15:46:47 +0000 (16:46 +0100)
Makefile.m4

index 6df673e..b87d514 100644 (file)
@@ -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.*/