scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 05bd001929ecd48cc48a10b8bd9acd7d6d0ecf7c
parent ad0cdde2978ae314e836e9b32d5cef7b9a740e9f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 21 Sep 2017 12:56:33 +0100

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.

Diffstat:
MMakefile | 2+-
Mlib/Makefile | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -8,7 +8,7 @@ FORALL = @set -e ;\ for i in $(DIRS); \ do \ cd $$i; \ - $(MAKE) $@; \ + $(MAKE) $(MAKEFLAGS) $@; \ cd $$pwd; \ done diff --git a/lib/Makefile b/lib/Makefile @@ -9,6 +9,6 @@ all dep clean distclean: for i in $(DIRS); \ do \ cd $$i; \ - $(MAKE) $@; \ + $(MAKE) $(MAKEFLAGS) $@; \ cd $$pwd; \ done