From cf32d2ad50880aa60221d188576a9ea4ef3da17f Mon Sep 17 00:00:00 2001 From: Christoph Scholtes Date: Thu, 15 Mar 2018 21:14:13 -0600 Subject: [PATCH] Update Makefile to return proper exit codes of sub-make commands. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4e204e02..8f0d8013 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ # Convert relative Rack directory path to absolute RACK_DIR := $(shell realpath $(RACK_DIR)) +REPOS ?= $(shell ls repos) -dist_all: - for f in repos/*; do $(MAKE) -C "$$f" dist; done +dist_all: $(REPOS) + +$(REPOS): + $(MAKE) -C repos/$@ dist + +.PHONY: dist_all $(REPOS)