LOC = it CC = pdflatex SRC != find * -name '*.tex' gtk4-book-${LOC}.pdf: main-${LOC}.tex ${SRC} ${CC} main-${LOC}.tex # For some pacakge/tool we need to execute the command twice ${CC} main-${LOC}.tex @mv main-${LOC}.pdf $@ main-${LOC}.tex: main.tex @cp $> $@ @sed -i "" 's/LOC\//${LOC}\//' $@ clean: @rm -f *.log *.aux *.pdf @rm -f main-*.tex english: @make LOC=en