Makefile: parallel build fixes take two
authorAlan Cox <alan@linux.intel.com>
Fri, 16 Sep 2016 11:52:25 +0000 (12:52 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 16 Sep 2016 11:52:25 +0000 (12:52 +0100)
From: David Flamand

Fix the parallel build

Kernel/Makefile

index 7bb3b6c..4172d1f 100644 (file)
@@ -129,12 +129,14 @@ usermem_std-z180.rel:     usermem_std-z180.s usermem_std-z80.s
 
 lowlevel-z180.rel:     lowlevel-z180.s lowlevel-z80.s
 
-target: include/kernel.h
+platform:
        -rm -f platform
        ln -sf platform-$(TARGET) platform
+
+target: include/kernel.h | platform
        +$(MAKE) -C platform-$(TARGET)
 
-#$(OBJS): target
+$(OBJS): | platform
 
 $(CSRCS): include/kernel.h