Latex: Makefile


Makefile for generating pdfs out of tex files.

I use the folder structure: tex/ for the tex files, img/ for images and want the pdf in the base folder.

Makefile:


%.pdf: tex/%.tex
rm -f $*.pdf
cd tex; pdflatex $*.tex
cp tex/$*.pdf $*.pdf

Calling it:


while sleep 1; do make -f /mnt/daten/Daten/Allgemein/Nützlich/Latex/Makefile *.pdf; done

Parameter is the pdf you want (with the same filename tex/NAME.tex).

  1. No comments yet.
(will not be published)

  1. No trackbacks yet.