SITES ?= $$(find . -maxdepth 2 -name "Makefile" -not -path "./Makefile" | xargs -I {} dirname {}) default: publish .PHONY: publish publish: for path in $(SITES) ; do \ cd $$path && make publish; \ done