I am using tikz to prepare diagrams for a project. Later I have to include these diagrams in the project files, and that's why I want to save each diagram with a given name. Let's say the following is my MWE
\documentclass[border=1mm,tikz]{standalone}
\begin{document}
%==========================
\label{my-first-figure}
\begin{tikzpicture}
\draw[thick,rounded corners=8pt]
(0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0);
\end{tikzpicture}
%==========================
\label{my-second-figure}
\begin{tikzpicture}
\filldraw [gray] (0,0) circle [radius=2pt]
(1,1) circle [radius=2pt]
(2,1) circle [radius=2pt]
(2,0) circle [radius=2pt];
\draw (0,0) .. controls (1,1) and (2,1) .. (2,0);
\end{tikzpicture}
\end{document}
I would like to save each tikzpicture, i.e., each page of the standalone pdf as separate pdf files. For example, after compiling the MWE, I would like to have the first tikzpicture as my-first-figure.pdf and the second tikzpicture as my-second-figure.pdf.
I am seeking a solution to reduce inconveniences if, at a later stage, I need to modify a particular diagram. I am not sure if this is possible or not. Any advice would be very helpful.