From db319ad89ea26b4cfaac167ddf6f82f2c1334d9c Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Mon, 2 May 2022 12:45:23 +0200 Subject: [PATCH] Rename tp1 to main --- communications-numeriques/tp1/Makefile | 15 ++++++++------- .../tp1/{tp1.tex => main.tex} | 0 2 files changed, 8 insertions(+), 7 deletions(-) rename communications-numeriques/tp1/{tp1.tex => main.tex} (100%) diff --git a/communications-numeriques/tp1/Makefile b/communications-numeriques/tp1/Makefile index a595a49..ccf3860 100644 --- a/communications-numeriques/tp1/Makefile +++ b/communications-numeriques/tp1/Makefile @@ -1,13 +1,14 @@ +filename=$(shell basename $(shell pwd)) timestamp=$(shell date +%Y-%m-%d_%H:%M) -all: tp1 +all: snapshot -tp1: tp1.tex - @latexmk -pdf tp1.tex - @if ! cmp --silent build/tp1.pdf tp1_*.pdf; then \ - touch tp1_tmp.pdf; \ - rm tp1*.pdf; \ - cp build/tp1.pdf tp1_${timestamp}.pdf; \ +snapshot: main.tex + @latexmk -pdf main.tex + @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 diff --git a/communications-numeriques/tp1/tp1.tex b/communications-numeriques/tp1/main.tex similarity index 100% rename from communications-numeriques/tp1/tp1.tex rename to communications-numeriques/tp1/main.tex