shithub: scc

Download patch

ref: 393b9c624f92f4f85349a589049c190825b28bb5
parent: efa37e2c01e594c39354441fb4621ec8242ba7b6
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Sep 21 08:56:33 EDT 2017

Pass MAKEFLAGS as parameter to recursive makes

MAKEFLAGS is not exported to all the subshells by make, so if
we want to pass options to the children then we have to
explicit use MAKEFLAGS in the comman line. This is why
parallel build wasn't working.

--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 	for i in $(DIRS); \
 	do \
 		cd $$i; \
-		$(MAKE) $@; \
+		$(MAKE) $(MAKEFLAGS) $@; \
 		cd $$pwd; \
 	done
 
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -9,6 +9,6 @@
 	for i in $(DIRS); \
 	do \
 		cd $$i; \
-		$(MAKE) $@; \
+		$(MAKE) $(MAKEFLAGS) $@; \
 		cd $$pwd; \
 	done