* makefile cruft
@ 2002-03-13 1:30 Thien-Thi Nguyen
2002-03-13 1:50 ` Thien-Thi Nguyen
0 siblings, 1 reply; 2+ messages in thread
From: Thien-Thi Nguyen @ 2002-03-13 1:30 UTC (permalink / raw)
i notice in some guile makefiles:
SOME-COMMAND > $@ || { rm $@; false; }
can this be replaced equiavalently w/ simply:
SOME-COMMAND > $@
? won't make(1) automatically remove $@ if SOME-COMMMAND fails?
is this some kind of kludge for broken make programs?
thi
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: makefile cruft
2002-03-13 1:30 makefile cruft Thien-Thi Nguyen
@ 2002-03-13 1:50 ` Thien-Thi Nguyen
0 siblings, 0 replies; 2+ messages in thread
From: Thien-Thi Nguyen @ 2002-03-13 1:50 UTC (permalink / raw)
ok, nevermind, i found this in the make info pages:
Usually when a command fails, if it has changed the target file at
all, the file is corrupted and cannot be used--or at least it is not
completely updated. Yet the file's timestamp says that it is now up to
date, so the next time `make' runs, it will not try to update that
file. The situation is just the same as when the command is killed by a
signal; *note Interrupts::. So generally the right thing to do is to
delete the target file if the command fails after beginning to change
the file. `make' will do this if `.DELETE_ON_ERROR' appears as a
target. This is almost always what you want `make' to do, but it is
not historical practice; so for compatibility, you must explicitly
request it.
i suppose when gcc fails it is the one that removes the output file, so
must all applications that want this behavior.
thi
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-13 1:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-13 1:30 makefile cruft Thien-Thi Nguyen
2002-03-13 1:50 ` Thien-Thi Nguyen
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 read-only IMAP folder(s) and NNTP newsgroup(s).