[bootlin/training-materials updates] master: Makefile: order help alphabetically (d422b09b)
Clément Léger
clement.leger at bootlin.com
Wed Oct 12 12:04:04 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/d422b09b9d7eb6a75fed0cfef5793539e227ffa9
>---------------------------------------------------------------
commit d422b09b9d7eb6a75fed0cfef5793539e227ffa9
Author: Clément Léger <clement.leger at bootlin.com>
Date: Wed Oct 12 12:03:39 2022 +0200
Makefile: order help alphabetically
Signed-off-by: Clément Léger <clement.leger at bootlin.com>
>---------------------------------------------------------------
d422b09b9d7eb6a75fed0cfef5793539e227ffa9
Makefile | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index e1af10fc..040a1317 100644
--- a/Makefile
+++ b/Makefile
@@ -332,14 +332,21 @@ HELP_FIELD_FORMAT = " %-36s %s\n"
help:
@echo "Available targets:"
@echo
+ @echo "Slides:"
$(foreach p,$(ALL_SLIDES),\
- @printf $(HELP_FIELD_FORMAT) "$(p)" "Complete slides for the '$(patsubst full-%-slides.pdf,%,$(p))' course"$(sep))
+ @printf $(sort $(HELP_FIELD_FORMAT)) "$(p)" "Complete slides for the '$(patsubst full-%-slides.pdf,%,$(p))' course"$(sep))
+ @echo
+ @echo "Labs:"
$(foreach p,$(ALL_LABS),\
- @printf $(HELP_FIELD_FORMAT) "$(p)" "Complete labs for the '$(patsubst full-%-labs.pdf,%,$(p))' course"$(sep))
+ @printf $(sort $(HELP_FIELD_FORMAT)) "$(p)" "Complete labs for the '$(patsubst full-%-labs.pdf,%,$(p))' course"$(sep))
+ @echo
+ @echo "Agendas:"
$(foreach p,$(ALL_AGENDAS),\
- @printf $(HELP_FIELD_FORMAT) "$(p)" "Agenda for the '$(patsubst %-agenda.pdf,%,$(p))' course"$(sep))
+ @printf $(sort $(HELP_FIELD_FORMAT)) "$(p)" "Agenda for the '$(patsubst %-agenda.pdf,%,$(p))' course"$(sep))
+ @echo
+ @echo "Tarballs:"
$(foreach p,$(ALL_LABS_TARBALLS),\
- @printf $(HELP_FIELD_FORMAT) "$(p)" "Lab data for the '$(patsubst %-labs.tar.xz,%,$(p))' course"$(sep))
+ @printf $(sort $(HELP_FIELD_FORMAT)) "$(p)" "Lab data for the '$(patsubst %-labs.tar.xz,%,$(p))' course"$(sep))
@echo
@printf $(HELP_FIELD_FORMAT) "<some-chapter>-slides.pdf" "Slides for a particular chapter in slides/"
@printf $(HELP_FIELD_FORMAT) "<some-chapter>-labs.pdf" "Labs for a particular chapter in labs/"
More information about the training-materials-updates
mailing list