I have a folder with a number of LaTeX files:
arquivo_001.tex
arquivo_002.tex
arquivo_003.tex
arquivo_004.tex
My idea is to write a makefile that allows me to do something like make 004
and it compiles only the arquivo_004.tex
file.
I found that using $@
inside the makefile uses the first argument, so I tried a makefile containing
all:
pdflatex [email protected]
But I get:
make: *** No rule to make target '10'. Stop.
What makes all sense. So I tried to call make all 10
, but then pdflatex does not find the file arquivo_all.tex
, which also makes sense.
Is there any way to get this second argument? What do I want to do in a different way?