.PHONY: tidy tidy: $(eval files=$(shell find . -name go.mod)) @set -e; \ for file in ${files}; do \ goModPath=$$(dirname $$file); \ cd $$goModPath; \ go mod tidy; \ cd -; \ done