From 24a7607d20394d992879fadbb6f4afe462da01b1 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 16 Mar 2010 01:57:28 -0700 Subject: [PATCH] build - Fix ordering to avoid -j race * The mkdir -p must complete prior to any source file copies. --- gnu/usr.bin/cc44/gmp/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/cc44/gmp/Makefile b/gnu/usr.bin/cc44/gmp/Makefile index 6ab4f39b15..ce279da6e5 100644 --- a/gnu/usr.bin/cc44/gmp/Makefile +++ b/gnu/usr.bin/cc44/gmp/Makefile @@ -181,9 +181,10 @@ LO_OBJECTS= ${MPF_OBJECTS} ${MPZ_OBJECTS} ${MPQ_OBJECTS} ${MPN_OBJECTS} \ .if exists(${mapsource}) && empty(MPNSRC:M${source}) .if !exists(${source}) -${source}: ${mapsource} - cp ${.ALLSRC} ${.TARGET} +${source}: ${mapsource} mkdirs + cp ${.ALLSRC:Nmkdirs} ${.TARGET} CLEANFILES+= ${source} +.ORDER: mkdir ${source} .endif MPNSRC+= ${source} -- 2.41.0