* [9fans] mk: the `D' attribute
@ 2012-10-09 8:02 dexen deVries
2012-10-09 9:04 ` Andy Spencer
2012-10-09 15:22 ` Anthony Sorace
0 siblings, 2 replies; 3+ messages in thread
From: dexen deVries @ 2012-10-09 8:02 UTC (permalink / raw)
To: 9fans
why is the `D' attribute (`If the recipe exits with a non-null status, the
target is deleted.') optional and not default behavior? in what cases does
leaving half-made files make sense?
GNU make's manual states, ``This [[removal of target on error]] is almost
always what you want `make' to do, but it is not historical practice; so for
compatibility, you must explicitly request it''. is `mk' about backward
compatibility just as well?
--
dexen deVries
[[[↓][→]]]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] mk: the `D' attribute
2012-10-09 8:02 [9fans] mk: the `D' attribute dexen deVries
@ 2012-10-09 9:04 ` Andy Spencer
2012-10-09 15:22 ` Anthony Sorace
1 sibling, 0 replies; 3+ messages in thread
From: Andy Spencer @ 2012-10-09 9:04 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 2012-10-09 10:02, dexen deVries wrote:
> GNU make's manual states, ``This [[removal of target on error]] is
> almost always what you want `make' to do
I'm don't think GNU Make has ever correctly predicted what I want
`make' to do.
Besides that, I think there could be problems if you have an existing
file and run mk to update it and instead it just deletes the one you
have.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] mk: the `D' attribute
2012-10-09 8:02 [9fans] mk: the `D' attribute dexen deVries
2012-10-09 9:04 ` Andy Spencer
@ 2012-10-09 15:22 ` Anthony Sorace
1 sibling, 0 replies; 3+ messages in thread
From: Anthony Sorace @ 2012-10-09 15:22 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
I suspect it just that we disagree. In the most common case, I don't really
care whether such things get deleted. I sometimes very much want them
not to be deleted, because they contain interesting information on the
failure mode. I don't believe I've ever explicitly wanted them to be
deleted. That describes a good case for the current default behavior.
Anthony
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-09 15:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-09 8:02 [9fans] mk: the `D' attribute dexen deVries
2012-10-09 9:04 ` Andy Spencer
2012-10-09 15:22 ` Anthony Sorace
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).