33 lines
1.3 KiB
Makefile
33 lines
1.3 KiB
Makefile
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
|
|
|
all: texte1-reperage lecon1-indices-de-la-personne
|
|
|
|
texte1-reperage: texte1-reperage.tex
|
|
@latexmk -pdf texte1-reperage.tex
|
|
@if ! cmp --silent build/texte1-reperage.pdf texte1-reperage_*.pdf; then \
|
|
touch texte1-reperage_tmp.pdf; \
|
|
rm texte1-reperage*.pdf; \
|
|
cp build/texte1-reperage.pdf texte1-reperage_${timestamp}.pdf; \
|
|
echo "Updated"; \
|
|
fi
|
|
|
|
lecon1-indices-de-la-personne: lecon1-indices-de-la-personne.tex
|
|
@latexmk -pdf lecon1-indices-de-la-personne.tex
|
|
@if ! cmp --silent build/lecon1-indices-de-la-personne.pdf lecon1-indices-de-la-personne_*.pdf; then \
|
|
touch lecon1-indices-de-la-personne_tmp.pdf; \
|
|
rm lecon1-indices-de-la-personne*.pdf; \
|
|
cp build/lecon1-indices-de-la-personne.pdf lecon1-indices-de-la-personne_${timestamp}.pdf; \
|
|
echo "Updated"; \
|
|
fi
|
|
|
|
lecon2-encore-un-drame-de-la-misere: lecon2-encore-un-drame-de-la-misere.tex
|
|
@latexmk -pdf lecon2-encore-un-drame-de-la-misere.tex
|
|
@if ! cmp --silent build/lecon2-encore-un-drame-de-la-misere.pdf lecon2-encore-un-drame-de-la-misere_*.pdf; then \
|
|
touch lecon2-encore-un-drame-de-la-misere_tmp.pdf; \
|
|
rm lecon2-encore-un-drame-de-la-misere*.pdf; \
|
|
cp build/lecon2-encore-un-drame-de-la-misere.pdf lecon2-encore-un-drame-de-la-misere_${timestamp}.pdf; \
|
|
echo "Updated"; \
|
|
fi
|
|
|
|
clean:
|
|
@rm -rf build 2>/dev/null
|