From e37c93d30877a4008f559c28cd7eb46d17a93734 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Wed, 22 Sep 2021 17:21:24 +0200 Subject: [PATCH] Prepare exo droit du travail --- droit-travail/exercices/20210922.tex | 13 +++++++++++++ droit-travail/exercices/Makefile | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 droit-travail/exercices/20210922.tex create mode 100644 droit-travail/exercices/Makefile diff --git a/droit-travail/exercices/20210922.tex b/droit-travail/exercices/20210922.tex new file mode 100644 index 0000000..3e9b0b5 --- /dev/null +++ b/droit-travail/exercices/20210922.tex @@ -0,0 +1,13 @@ +\documentclass[a4paper,french]{article} + +\title{Exercice droit du travail} +\author{} +\date{22 septembre 2021} + +\usepackage{../../cours} + +\begin{document} + +\maketitle + +\end{document} diff --git a/droit-travail/exercices/Makefile b/droit-travail/exercices/Makefile new file mode 100644 index 0000000..0c9676f --- /dev/null +++ b/droit-travail/exercices/Makefile @@ -0,0 +1,15 @@ +timestamp=$(shell date +%Y-%m-%d_%H:%M) + +all: 20210922 + +20210922: 20210922.tex + @latexmk -pdf 20210922.tex >/dev/null 2>&1 + @if ! cmp --silent build/20210922.pdf 20210922_*.pdf; then \ + touch 20210922_tmp.pdf; \ + rm 20210922*.pdf; \ + cp build/20210922.pdf 20210922_${timestamp}.pdf; \ + echo "Updated"; \ + fi + +clean: + @rm -rf build 2>/dev/null