=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/parse.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/make/parse.c 2000/04/17 23:45:24 1.38 --- src/usr.bin/make/parse.c 2000/04/17 23:54:47 1.39 *************** *** 1,4 **** ! /* $OpenBSD: parse.c,v 1.38 2000/04/17 23:45:24 espie Exp $ */ /* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: parse.c,v 1.39 2000/04/17 23:54:47 espie Exp $ */ /* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */ /* *************** *** 43,49 **** #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else ! static char rcsid[] = "$OpenBSD: parse.c,v 1.38 2000/04/17 23:45:24 espie Exp $"; #endif #endif /* not lint */ --- 43,49 ---- #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else ! static char rcsid[] = "$OpenBSD: parse.c,v 1.39 2000/04/17 23:54:47 espie Exp $"; #endif #endif /* not lint */ *************** *** 1592,1599 **** { GNode *gn = (GNode *) gnp; /* if target already supplied, ignore commands */ ! if (!(gn->type & OP_HAS_COMMANDS)) Lst_AtEnd(gn->commands, cmd); return(0); } --- 1592,1604 ---- { GNode *gn = (GNode *) gnp; /* if target already supplied, ignore commands */ ! if (!(gn->type & OP_HAS_COMMANDS)) { Lst_AtEnd(gn->commands, cmd); + if (!gn->lineno) { + gn->lineno = Parse_Getlineno(); + gn->fname = Parse_Getfilename(); + } + } return(0); }