diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 33087a0..70ce63c 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -337,7 +337,7 @@ static void writeLatexMakefile() } t << "\techo \"Rerunning latex....\"\n" << "\t$(LATEX_CMD) $(MANUAL_FILE).tex\n" - << "\tlatex_count=%(LATEX_COUNT) ; \\\n" + << "\tlatex_count=$(LATEX_COUNT) ; \\\n" << "\twhile egrep -s 'Rerun (LaTeX|to get cross-references right|to get bibliographical references right)' $(MANUAL_FILE).log && [ $$latex_count -gt 0 ] ;\\\n" << "\t do \\\n" << "\t echo \"Rerunning latex....\" ;\\\n"