What you ask for is not trivial. You can probably get something that suits your needs, but it takes a bit of work.
Just to be clear, (Assuming this worked)
%_WILDCARD.pdf: %.tex pdflatex -jobname%_$(WILDCARD) %.tex
It would be a rule that for each .tex file you will run pdflatex with WILDCARD as the job name. So you can type: make doc_test.pdf to get the pdf file from the doc.tex file using the doc_test job.
One way to get this behavior is to use:
And run it with
make doc_test.pdf
I just go ahead and make a disclaimer that I didn’t actually run it, so please excuse any typos.
source share