Subject: misc/12833: Makefiles contain `command > $@` or `> ${.TARGET}`
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/04/2001 11:20:04
>Number:         12833
>Category:       misc
>Synopsis:       Makefiles contain `command > $@` or `> ${.TARGET}`
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 04 11:20:00 PDT 2001
>Originator:     Andrew Cagney
>Release:        1.5 branch
NetBSD localhost 1.5U NetBSD 1.5U (NETLUX) #0: Tue Apr 24 10:56:24 EDT 2001     boor@localhost:/usr/src/trunk/sys/arch/macppc/compile/NETLUX macppc

Some of the makefiles contain rules like:

/usr/src/lib/libedit/Makefile:  sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/vi.c > ${.TARGET}

If the command fails, a corrupt ${.TARGET} is created.  The next time make is run, it will stumble past the corrupt target thinking that all is ok.

Corrupt leading to grep dumping core and then watch what happens.