From petri@ibr.cs.tu-bs.de  Mon Jun 12 02:09:14 1995
Received: from ra.ibr.cs.tu-bs.de (ra.ibr.cs.tu-bs.de [134.169.246.34])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA16145
          ; Mon, 12 Jun 1995 02:06:34 -0700
Received: from jupiter [134.169.34.4] by ra.ibr.cs.tu-bs.de (8.6.10/tubsibr) with ESMTP id LAA10079; Mon, 12 Jun 1995 11:05:42 +0200
Received: from petri@localhost by jupiter.ibr.cs.tu-bs.de (8.6.11/tubsibr) id LAA14341; Mon, 12 Jun 1995 11:05:36 +0200
Message-Id: <199506120905.LAA14341@jupiter.ibr.cs.tu-bs.de>
Date: Mon, 12 Jun 1995 11:05:36 +0200
From: petri@ibr.cs.tu-bs.de (Stefan Petri)
Reply-To: petri@ibr.cs.tu-bs.de
To: FreeBSD-gnats-submit@freebsd.org, bugs@freebsd.org
Subject: make chokes on empty rules + fix
X-Send-Pr-Version: 3.2

>Number:         549
>Category:       bin
>Synopsis:       make chokes on empty rules + fix
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 23 07:38:55 1995
>Closed-Date:    Tue Jun 27 14:51:54 PDT 1995
>Last-Modified:
>Originator:     Stefan Petri
>Release:        FreeBSD 2.0.950412-SNAP i386
>Organization:
TU Braunschweig, Inst. f. Betriebssysteme u. Rechnerverbund
>Environment:

	Any FreeBSD

>Description:

	make aborts with fatal error if a Makefile rule line contains a
	tab followed by an emtpy shell command line. This is very annoying,
	because the Makefiles in almost every piece of software on the
	net contain such lines, notably Makefiles that are generated by
	the gnu configure utility. The correctness of such lines might
	be arguable, but since every other version of make simply
	ignores such lines, I propose the following fix, which will
	print out a warning about such a line, but will continue to
	make the target.

	[send-pr did not like ``Severity: seriuosly annoying'' ;-]

>How-To-Repeat:

	Creat a Makefile with only a tabulator in a rule line, then
	invoke make.

>Fix:
	

*** /usr/src/usr.bin/make/parse.c-950412-SNAP	Mon Jan 23 22:01:46 1995
--- parse.c	Mon Jun 12 10:44:13 1995
***************
*** 715,721 ****
  	     * Ending a dependency line without an operator is a Bozo
  	     * no-no 
  	     */
! 	    Parse_Error (PARSE_FATAL, "Need an operator");
  	    return;
  	}
  	*cp = '\0';
--- 715,721 ----
  	     * Ending a dependency line without an operator is a Bozo
  	     * no-no 
  	     */
! 	    Parse_Error (PARSE_WARNING, "Need an operator");
  	    return;
  	}
  	*cp = '\0';
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Tue Jun 27 14:51:54 PDT 1995 
State-Changed-Why:  
Fixed in another way in revisions 1-6-1.7 of make/parse.c 
>Unformatted:



