Subject: bin/5370: Make adds dependencies from implicit rules even when there is an explicit rule
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ian.dall@dsto.defence.gov.au>
List: netbsd-bugs
Date: 04/29/1998 00:46:31
>Number:         5370
>Category:       bin
>Synopsis:       Make adds dependencies from implicit rules even when there is an explicit rule
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 28 08:20:01 1998
>Last-Modified:
>Originator:     Ian Dall
>Organization:
	
>Release:        <NetBSD-current source date> NetBSD 1.3
>Environment:
	
System: NetBSD sibyl.chez-dall.org.au 1.3E NetBSD 1.3E (SIBYL) #4: Tue Apr 21 00:41:00 CST 1998 ian@sibyl.chez-dall.org.au:/usr3/netbsd-1.2/lsrc/sys/arch/pc532/compile/SIBYL pc532


>Description:
	
If there is an implicit make rule which could make a target from a dependant,
that dependant gets added to .ALLSRC and .OODATE even when there is
an explicit rule. This is more aggressive than other makes and can cause
problems.

>How-To-Repeat:
	

Create a Makefile:

foo.o:	bar.c
	@echo Transforming $? to foo.o

Then:

touch foo.c bar.c.
make

Produces:

Transforming bar.c foo.c to foo.o

Whereas with gnu make:

gmake

Produces:

Transforming bar.c to foo.o

>Fix:
	
>Audit-Trail:
>Unformatted: