From f30d1dc9882b13feaf69936b10544f78521a12d1 Mon Sep 17 00:00:00 2001 From: Joshua Luckey Date: Thu, 3 Oct 2024 19:19:36 +0200 Subject: [PATCH] add run rule to first build all steps and then run the Makfile therin --- .../8-all/example-report/Makefile | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/exercises-toolbox/8-all/example-report/Makefile b/exercises-toolbox/8-all/example-report/Makefile index e76f3661..ed6ec789 100644 --- a/exercises-toolbox/8-all/example-report/Makefile +++ b/exercises-toolbox/8-all/example-report/Makefile @@ -95,16 +95,32 @@ solution_makefile_files = $(addsuffix Makefile-loesung, $(wordlist 2,5,$(solutio target_makefile_files = $(addsuffix v16516/Makefile, $(wordlist 10,11,$(solution_dirs))) makefile_files = $(solution_makefile_files) $(target_makefile_files) +all: run - - -all:$(task_files) \ +run:$(task_files) \ $(python_files) \ $(data_files) \ $(tex_files) \ $(setup_image_files) \ $(makefile_files) + # Run all Makefile-loesung + set -- $(wordlist 1, 5,$(solution_dirs)); \ + for i do\ + make -C $$i -f Makefile-loesung; \ + done + # Run all Makefile-loesung in the additional subdir v16516 + set -- $(addsuffix v16516/, $(wordlist 6, 9,$(solution_dirs))); \ + for i do\ + make -C $$i -f Makefile-loesung; \ + done + # Run the Makefile in the last two steps + set -- $(addsuffix v16516/, $(wordlist 10, 11,$(solution_dirs))); \ + for i do\ + make -C $$i -f Makefile; \ + done + + build/example-report-step-%/aufgabe.txt &: $(template_task_files) | $(step_dirs) cp templates/aufgabe-step-$*.txt build/example-report-step-$*/aufgabe.txt