From 7760f2feba0f4321eb76e8fafb8dba73f8ab5d8a Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sat, 4 Sep 2021 23:38:20 +0200 Subject: [PATCH] Add Makefiles --- analyse/Makefile | 16 ++++++++++++++++ logique-programmable/Makefile | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 analyse/Makefile create mode 100644 logique-programmable/Makefile diff --git a/analyse/Makefile b/analyse/Makefile new file mode 100644 index 0000000..4bce23d --- /dev/null +++ b/analyse/Makefile @@ -0,0 +1,16 @@ +filename=$(shell basename $(shell pwd)) +timestamp=$(shell date +%Y-%m-%d_%H:%M) + +all: snapshot + +snapshot: main.tex + @latexmk -pdf main.tex >/dev/null 2>&1 + @if ! cmp --silent build/main.pdf ${filename}_*.pdf; then \ + touch ${filename}_tmp.pdf; \ + rm ${filename}*.pdf; \ + cp build/main.pdf ${filename}_${timestamp}.pdf; \ + echo "Updated"; \ + fi + +clean: + @rm -rf build 2>/dev/null diff --git a/logique-programmable/Makefile b/logique-programmable/Makefile new file mode 100644 index 0000000..4bce23d --- /dev/null +++ b/logique-programmable/Makefile @@ -0,0 +1,16 @@ +filename=$(shell basename $(shell pwd)) +timestamp=$(shell date +%Y-%m-%d_%H:%M) + +all: snapshot + +snapshot: main.tex + @latexmk -pdf main.tex >/dev/null 2>&1 + @if ! cmp --silent build/main.pdf ${filename}_*.pdf; then \ + touch ${filename}_tmp.pdf; \ + rm ${filename}*.pdf; \ + cp build/main.pdf ${filename}_${timestamp}.pdf; \ + echo "Updated"; \ + fi + +clean: + @rm -rf build 2>/dev/null