diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-11-03 10:39:23 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-11-03 10:39:23 +0000 |
commit | da1b870f0988a0d77ee10618f587edbfcc9614a2 (patch) | |
tree | 1caf93ec0a381f926c2ff57d8c535432f1ea6518 | |
parent | 10186b192177e8eb879e0d4a7f5da50ed2fb2270 (diff) |
suff.c sets IMPSRC correctly, whereas this is bogus and strips the path
a lot of the time.
-rw-r--r-- | usr.bin/make/make.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c index 417a0996278..fee0fa8d37d 100644 --- a/usr.bin/make/make.c +++ b/usr.bin/make/make.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: make.c,v 1.43 2007/11/02 17:27:24 espie Exp $ */ +/* $OpenBSD: make.c,v 1.44 2007/11/03 10:39:22 espie Exp $ */ /* $NetBSD: make.c,v 1.10 1996/11/06 17:59:15 christos Exp $ */ /* @@ -213,17 +213,15 @@ Make_Update(GNode *cgn) /* the child node */ (void)Lst_QueueNew(&toBeMade, succ); } - /* Set the .PREFIX and .IMPSRC variables for all the implied parents + /* Set the .IMPSRC variables for all the implied parents * of this node. */ { char *cpref = Varq_Value(PREFIX_INDEX, cgn); for (ln = Lst_First(&cgn->iParents); ln != NULL; ln = Lst_Adv(ln)) { pgn = (GNode *)Lst_Datum(ln); - if (pgn->make) { + if (pgn->make) Varq_Set(IMPSRC_INDEX, cname, pgn); - Varq_Set(PREFIX_INDEX, cpref, pgn); - } } } |