Skip to content

Commit

Permalink
add run rule to first build all steps and then run the Makfile therin
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyJosh committed Oct 3, 2024
1 parent 2153b51 commit f30d1dc
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions exercises-toolbox/8-all/example-report/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f30d1dc

Please sign in to comment.