version 1.54, 2017/07/24 12:08:15 |
version 1.55, 2018/11/27 09:33:48 |
|
|
bool |
bool |
node_find_valid_commands(GNode *gn) |
node_find_valid_commands(GNode *gn) |
{ |
{ |
/* Alter our type to tell if errors should be ignored or things |
|
* should not be printed so setup_and_run_command knows what to do. |
|
*/ |
|
if (Targ_Ignore(gn)) |
|
gn->type |= OP_IGNORE; |
|
if (Targ_Silent(gn)) |
|
gn->type |= OP_SILENT; |
|
|
|
if (DEBUG(DOUBLE) && (gn->type & OP_DOUBLE)) |
if (DEBUG(DOUBLE) && (gn->type & OP_DOUBLE)) |
fprintf(stderr, "Warning: target %s had >1 lists of " |
fprintf(stderr, "Warning: target %s had >1 lists of " |
"shell commands (ignoring later ones)\n", gn->name); |
"shell commands (ignoring later ones)\n", gn->name); |
|
|
return; |
return; |
} |
} |
|
|
if (!(gn->type & OP_SILENT)) { |
if (!Targ_Silent(gn)) { |
(void)fprintf(stdout, "touch %s\n", gn->name); |
(void)fprintf(stdout, "touch %s\n", gn->name); |
(void)fflush(stdout); |
(void)fflush(stdout); |
} |
} |
|
|
pid_t cpid; /* Child pid */ |
pid_t cpid; /* Child pid */ |
|
|
const char *cmd = job->cmd; |
const char *cmd = job->cmd; |
silent = job->node->type & OP_SILENT; |
silent = Targ_Silent(job->node); |
errCheck = !(job->node->type & OP_IGNORE); |
errCheck = !Targ_Ignore(job->node); |
if (job->node->type & OP_MAKE) |
if (job->node->type & OP_MAKE) |
doExecute = true; |
doExecute = true; |
else |
else |