Archives / Snippets / Projets

Makefile

TARGET= $(foreach FILE, $(wildcard *.tex), $(FILE:.tex=.pdf))

all: $(TARGET)

%.pdf: %.tex
    (latexmk -pdf -quiet "$<") || (rubber-info "$<" | head) && latexmk -c "$<"
$@    objectif
$<    premier prérequis

$^    tous les prérequis
$*    %