[bootlin/training-materials updates] master: Makefile: check for all .tex files to exist (292167ee)
Clément Léger
clement at clement-leger.fr
Thu May 12 10:00:12 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/292167ee39305102646ad2d27bc08a80797d028e
>---------------------------------------------------------------
commit 292167ee39305102646ad2d27bc08a80797d028e
Author: Clément Léger <clement at clement-leger.fr>
Date: Thu May 12 09:57:19 2022 +0200
Makefile: check for all .tex files to exist
Missing .tex files lead to the %-slides.pdf rule not being matched and
thus displaying a message saying that there is no rule to build the
training slides. Better be cautious and checked for all files to exist.
Signed-off-by: Clément Léger <clement at clement-leger.fr>
>---------------------------------------------------------------
292167ee39305102646ad2d27bc08a80797d028e
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 78e11cef..93c6ea9f 100644
--- a/Makefile
+++ b/Makefile
@@ -125,8 +125,10 @@ SLIDES_TEX = \
$(SLIDES_COMMON_AFTER)
SLIDES_PICTURES = $(call PICTURES,$(foreach s,$(SLIDES_CHAPTERS),slides/$(s))) $(COMMON_PICTURES)
+# Check for all slides .tex file to exist
+$(foreach file,$(SLIDES_TEX),$(if $(wildcard $(file)),,$(error Missing file $(file) !)))
+
%-slides.pdf: $(VARS) $(SLIDES_TEX) $(SLIDES_PICTURES) $(STYLESHEET) $(OUTDIR)/last-update.tex
- @echo $(SLIDES_CHAPTERS_NUM)
@mkdir -p $(OUTDIR)
# We generate a .tex file with \input{} directives (instead of just
# concatenating all files) so that when there is an error, we are
More information about the training-materials-updates
mailing list