From 1b1538deb49d17c55fa2ffa61c591220f7508668 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Tue, 17 Jul 2018 07:37:12 -0400 Subject: Allow parallel make all to build each subdir simultaneously --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 518e08c..5a95087 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,11 @@ SUBDIRS = icebox icepack iceprog icemulti icepll icetime icebram include config.mk -all clean install uninstall: +all: $(addsuffix .all,$(SUBDIRS)) +$(addsuffix .all,$(SUBDIRS)): + $(MAKE) -C $(basename $@) all + +clean install uninstall: for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir $@ || exit; \ done -- cgit v1.2.3