Subject: CVS commit: pkgsrc/mk/flavor/pkg
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 03/08/2007 15:38:48
Module Name:	pkgsrc
Committed By:	rillig
Date:		Thu Mar  8 15:38:47 UTC 2007

Modified Files:
	pkgsrc/mk/flavor/pkg: depends.mk

Log Message:
Don't create ${.TARGET} unless no further error can occur. The make(1)
manual page says that ${.TARGET} is removed automatically if make is
interrupted, but it is _not_ removed if a command fails. This case may
happen after an incomplete CVS update (I forgot the -d option). When
running "make depends" for the first time, an error message is printed.
When running it for the second time, an empty .depends file existed, so
the build continued.


To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 pkgsrc/mk/flavor/pkg/depends.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.