[PATCH intel-gpu-tools 1/6] Debugger: convert existing makefiles to Automake.
Colin Walters
walters at verbum.org
Fri Jan 6 08:19:16 PST 2012
On Fri, 2012-01-06 at 10:52 -0500, Gaetan Nadon wrote:
> +sr.cpp : sr.g4a
> + $(srcdir)/pre_cpp.py $(srcdir)/sr.g4a > $@
I recommend writing custom build commands to be atomic. Which means:
$(srcdir)/pre_cpp.py $(srcdir)/sr.g4a > $@.tmp && mv $@.tmp $@
This way if the developer uses Control-C to send SIGINT to the process
group which kills the command in the middle of a write (or the command
crashes), you don't spend any time debugging the later program which is
consuming a half-written input file. In some cases this can cause very
subtle corruption or errors.
More information about the xorg-devel
mailing list