mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +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;
|
n->time = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char*
|
||||||
|
dir(void)
|
||||||
|
{
|
||||||
|
static char buf[1024];
|
||||||
|
|
||||||
|
return getcwd(buf, sizeof buf);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
work(Node *node, Node *p, Arc *parc)
|
work(Node *node, Node *p, Arc *parc)
|
||||||
{
|
{
|
||||||
|
@ -90,7 +98,7 @@ work(Node *node, Node *p, Arc *parc)
|
||||||
/* consider no prerequsite case */
|
/* consider no prerequsite case */
|
||||||
if(node->prereqs == 0){
|
if(node->prereqs == 0){
|
||||||
if(node->time == 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){
|
if(kflag){
|
||||||
node->flags |= BEINGMADE;
|
node->flags |= BEINGMADE;
|
||||||
runerrs++;
|
runerrs++;
|
||||||
|
|
Loading…
Reference in a new issue