← Back to team overview

kicad-developers team mailing list archive

enable-parallel-make.patch

 

With this small change, we can use "make -j", which considerably
improves compile time on multicores.

GNU Make's logic for recursive makes is a little twisted: if it
sees a $(MAKE) in a rule, it knows that this is a recursive make
and implicitly passes -j. This happens only before expaning the
rule. That's why it doesn't see the $(MAKE) inside $(MAKEGTK).

The "+" is a mechanism to explicitly tell GNU Make that there's
a recursive make.

This patch depends on dont-hide-make-failure.patch

- Werner

---------------------------------- cut here -----------------------------------

Index: kicad/makefile.gtk
===================================================================
--- kicad.orig/makefile.gtk	2009-04-28 17:36:03.000000000 -0300
+++ kicad/makefile.gtk	2009-04-28 17:43:10.000000000 -0300
@@ -6,7 +6,7 @@
KICAD_SUBDIRS_HELP = help

all:
-	@for dir in $(KICAD_SUBDIRS); do \
+	@+for dir in $(KICAD_SUBDIRS); do \
$(MAKEGTK) -C $$dir || exit 1; \
done

 




Follow ups