=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/compat.c,v retrieving revision 1.88 retrieving revision 1.89 diff -c -r1.88 -r1.89 *** src/usr.bin/make/compat.c 2019/12/21 15:29:25 1.88 --- src/usr.bin/make/compat.c 2020/01/08 14:09:29 1.89 *************** *** 1,4 **** ! /* $OpenBSD: compat.c,v 1.88 2019/12/21 15:29:25 espie Exp $ */ /* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: compat.c,v 1.89 2020/01/08 14:09:29 espie Exp $ */ /* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */ /* *************** *** 266,276 **** } } ! void Compat_Run(Lst targs) /* List of target nodes to re-create */ { GNode *gn = NULL; /* Current root target */ int errors; /* Number of targets not built due to errors */ /* For each entry in the list of targets to create, call CompatMake on * it to create the thing. CompatMake will leave the 'built_status' --- 266,277 ---- } } ! bool Compat_Run(Lst targs) /* List of target nodes to re-create */ { GNode *gn = NULL; /* Current root target */ int errors; /* Number of targets not built due to errors */ + bool out_of_date = false; /* For each entry in the list of targets to create, call CompatMake on * it to create the thing. CompatMake will leave the 'built_status' *************** *** 291,301 **** else if (gn->built_status == ABORTED) { printf("`%s' not remade because of errors.\n", gn->name); errors++; } } /* If the user has defined a .END target, run its commands. */ ! if (errors == 0) run_gnode(end_node); } --- 292,306 ---- else if (gn->built_status == ABORTED) { printf("`%s' not remade because of errors.\n", gn->name); + out_of_date = true; errors++; + } else { + out_of_date = true; } } /* If the user has defined a .END target, run its commands. */ ! if (errors == 0 && !queryFlag) run_gnode(end_node); + return out_of_date; }