# Latexmk and the location of Asymptote's generated files

I am trying out Asymptote with latexmk and I would like to automate the interaction.

Consider the following latex document test.tex:

\documentclass{minimal}
\usepackage{asymptote}
\def\asydir{asymptote}

\begin{document}

Testing Asymptote:

\begin{asy}
settings.outformat = "pdf";
unitsize(2cm);
draw((0,0) -- (1,0));
\end{asy}

\end{document}

In my latexmkrc I have the following lines for Asymptote integration: