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