[bootlin/training-materials updates] master: Makefile: calculate ALL_TRAININGS list automatically (715caf25)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Apr 25 12:12:57 CEST 2019


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

>---------------------------------------------------------------

commit 715caf2502a732118ed934bc2a801e9910a0bd5a
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Thu Apr 25 10:44:08 2019 +0200

    Makefile: calculate ALL_TRAININGS list automatically
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


>---------------------------------------------------------------

715caf2502a732118ed934bc2a801e9910a0bd5a
 Makefile | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index 4cc311df..d82f270c 100644
--- a/Makefile
+++ b/Makefile
@@ -270,14 +270,7 @@ $(VARS): FORCE
 clean:
 	$(RM) -rf $(OUTDIR) *.pdf *-labs *.xz
 
-ALL_TRAININGS = \
-	autotools \
-	boottime \
-	buildroot \
-	kernel \
-	sysdev \
-	sysdev-4d \
-	yocto
+ALL_TRAININGS = $(sort $(patsubst %.mk,%,$(notdir $(wildcard mk/*.mk))))
 
 all: $(foreach p,$(ALL_TRAININGS),full-$(p)-slides.pdf full-$(p)-labs.pdf $(p)-agenda.pdf)
 




More information about the training-materials-updates mailing list