DIRS := $(shell ls -d */) .PHONY: test test: for dir in $(DIRS); do \ echo "\n"; \ python3 $$dir/main.py; \ done; \ echo "\nAll Python examples executed.\n"