trace: avoid unnecessary recompilation if nothing changed
commita82cdd58fd9ffa8c651f51de8d855f6baf708681
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 2 Oct 2010 14:28:12 +0000 (2 14:28 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 2 Oct 2010 14:28:12 +0000 (2 14:28 +0000)
treec07111dd003a2875da57d33246d350223868ac38
parent904fe1fbd10388f384c9930fa2d8a25113b7e7aa
trace: avoid unnecessary recompilation if nothing changed

Add logic to detect changes in generated files. If the old
and new files are identical, don't touch the generated file.
This avoids a lot of churn since many files depend on trace.h.

Based on suggestion by Paolo Bonzini.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Makefile