[bootlin/training-materials updates] master: Makefile: make sure all agendas are listed in "make help" (3ebb79fd)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Mar 25 07:47:03 CET 2020

Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/3ebb79fdbc1f884b9f7f2839a1346f5c778bb248


commit 3ebb79fdbc1f884b9f7f2839a1346f5c778bb248
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Wed Mar 25 07:47:03 2020 +0100

    Makefile: make sure all agendas are listed in "make help"
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4770f65e..9b2f5846 100644
--- a/Makefile
+++ b/Makefile
@@ -309,8 +309,8 @@ help:
 		@printf $(HELP_FIELD_FORMAT) "full-$(p)-labs.pdf" "Complete labs for the '$(p)' course"$(sep))
 	$(foreach p,$(ALL_TRAININGS),\
 		@printf $(HELP_FIELD_FORMAT) "full-$(p)-slides.pdf" "Complete slides for the '$(p)' course"$(sep))
-	$(foreach p,$(ALL_TRAININGS),\
-		@printf $(HELP_FIELD_FORMAT) "$(p)-agenda.pdf" "Agenda for the '$(p)' course"$(sep))
+	$(foreach p,$(sort $(patsubst agenda/%.tex,%.pdf,$(wildcard agenda/*.tex))),\
+		@printf $(HELP_FIELD_FORMAT) "$(p)" "Agenda for the '$(patsubst %-agenda.pdf,%,$(p))' course"$(sep))
 	$(foreach p,$(ALL_TRAININGS),\
 		@printf $(HELP_FIELD_FORMAT) "$(p)-labs.tar.xz" "Lab data for the '$(p)' course"$(sep))

More information about the training-materials-updates mailing list