From b8762623c6b8b8cb6de1ebdfce0b2754e9b4f0bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Lebrun?= Date: Wed, 29 Oct 2025 11:19:10 +0100 Subject: [PATCH] Makefile: add phony targets for generating all assets of a training MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes you want to build-test all training content once you modified some slides. Add PHONY targets: ⟩ # generate slides/labs/agendas/tarballs for all three variants ⟩ make linux-kernel ⟩ ⟩ # same thing for the audio training: ⟩ # full-audio-slides.pdf audio-agenda.pdf audio-fr-agenda.pdf ⟩ # audio-online-agenda.pdf audio-online-fr-agenda.pdf ⟩ make audio Signed-off-by: Théo Lebrun --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 245bfb8797..24481d740b 100644 --- a/Makefile +++ b/Makefile @@ -336,6 +336,14 @@ all: $(ALL_SLIDES) $(ALL_LABS) $(ALL_AGENDAS) $(ALL_LABS_TARBALLS) list-courses: @echo $(ALL_TRAININGS) +.PHONY: $(ALL_TRAININGS) linux-kernel +$(ALL_TRAININGS) linux-kernel: + $(MAKE) \ + $(filter full-$@%,$(ALL_SLIDES)) \ + $(filter full-$@%,$(ALL_LABS)) \ + $(filter $@%,$(ALL_AGENDAS)) \ + $(filter $@%,$(ALL_LABS_TARBALLS)) + HELP_FIELD_FORMAT = " %-36s %s\n" help: @@ -361,3 +369,5 @@ help: @printf $(HELP_FIELD_FORMAT) "-labs.pdf" "Labs for a particular chapter in labs/" @echo @printf $(HELP_FIELD_FORMAT) "list-courses" "List all courses" + @printf $(HELP_FIELD_FORMAT) "" "Slides, labs, agendas and tarballs for the course" + @printf $(HELP_FIELD_FORMAT) "linux-kernel" "Slides, labs, agendas and tarballs for all variants of the course"