DIRS := $(shell ls -d */) ifndef VERBOSE .SILENT: endif all: for dir in $(DIRS); do \ echo "\n"; \ python3 $$dir/main.py; \ echo "\n"; \ done echo "All Python examples executed.\n"