[bootlin/training-materials updates] master: Makefile: make sure the out/ directory exists in the last-update.tex target (99e00d55)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Jan 14 17:24:26 CET 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/99e00d55ac9f96c68e14d4cf866faadaf58a79fb
>---------------------------------------------------------------
commit 99e00d55ac9f96c68e14d4cf866faadaf58a79fb
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Fri Jan 14 17:24:08 2022 +0100
Makefile: make sure the out/ directory exists in the last-update.tex target
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
99e00d55ac9f96c68e14d4cf866faadaf58a79fb
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 18c66bb6..78e11cef 100644
--- a/Makefile
+++ b/Makefile
@@ -248,6 +248,7 @@ endif
# === Last update file generation ===
#
$(OUTDIR)/last-update.tex: FORCE
+ mkdir -p $(@D)
t=`git log -1 --format=%ct` && printf "\def \lastupdateen{%s}\n" "`(LANG=en_EN.UTF-8 date -d @$${t} +'%B %d, %Y')`" > $@
t=`git log -1 --format=%ct` && printf "\def \lastupdatefr{%s}\n" "`(LANG=fr_FR.UTF-8 date -d @$${t} +'%d %B %Y')`" >> $@
More information about the training-materials-updates
mailing list