[Tex/LaTex] How to run latexmk with LuaTeX on Windows


This is a bit of a follow-up question to: Is there latexmk functionality for LuaTeX?

I am trying to setup latexmk on Windows 7 together with LuaTeX but it does not work for some unknown reason. Latexmk in connection with pdftex runs without problems though. With the command line for luatex:

latexmk -pdflatex=lualatex -pdf test.tex

I get the following output:

Latexmk: This is Latexmk, John Collins, 30 March 2012, version: 4.31.
**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Non-existent destination files:
Run number 1 of rule 'pdflatex'
Running 'lualatex  -recorder  "test.tex"'
This is LuaTeX, Version beta-0.70.1-2012011814 (MiKTeX 2.9)

Other attempts at changing the latexmk command with the suggested values from the man-page also do not succeed (latexmk -pdf -pdflatex="lualatex %O %S" test.tex). Is there any chance of getting this to work?

Best Answer

It looks like a MiKTeX bug and I have made a bug report: