I want to be able to make \dotfill in math \begin{align*} mode
Here is my code
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
& M=E-e \sin E \makebox[5cm]{\dotfill} \tag{1}\\
& A=B+C
\end{align*}
\end{document}
But this does not work. I want the dots to go up to the tag (1) as in old typography. I also want that the dots do not move the equation. I want also the dots to fill automatically the space until the tag. Thanks for any help
Update 29/10/2022
I have now a macro that allows to just set the length of the dot sequence. But I would like to do it in an automated way.
\newcommand{\jdot}[1]{ \rlap{\makebox[#1]{\dotfill} }}
Now my LateX code becomes
\documentclass{article}
\usepackage{amsmath}
\newcommand{\jdot}[1]{ \rlap{\makebox[#1]{\dotfill} }}
\begin{document}
\begin{align*}
M&=E-e \sin E \jdot{4.4cm} \tag{1}\\
A&=B+C
\end{align*}
\end{document}
The dot sequence do not move the equation, thanks to the rlap but I still need to define manually the length of the sequence. The challenge is to find this length in an automated way.

