mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
print current directory in "don't know how to make" errors.
This commit is contained in:
parent
b3161d97b0
commit
d8b652ae6f
1 changed files with 9 additions and 1 deletions
|
@ -60,6 +60,14 @@ unpretend(Node *n)
|
|||
n->time = 0;
|
||||
}
|
||||
|
||||
static char*
|
||||
dir(void)
|
||||
{
|
||||
static char buf[1024];
|
||||
|
||||
return getcwd(buf, sizeof buf);
|
||||
}
|
||||
|
||||
int
|
||||
work(Node *node, Node *p, Arc *parc)
|
||||
{
|
||||
|
@ -90,7 +98,7 @@ work(Node *node, Node *p, Arc *parc)
|
|||
/* consider no prerequsite case */
|
||||
if(node->prereqs == 0){
|
||||
if(node->time == 0){
|
||||
fprint(2, "mk: don't know how to make '%s'\n", node->name);
|
||||
fprint(2, "mk: don't know how to make '%s' in %s\n", node->name, dir());
|
||||
if(kflag){
|
||||
node->flags |= BEINGMADE;
|
||||
runerrs++;
|
||||
|
|
Loading…
Reference in a new issue