trace: fix make foo-timestamp rules
commit9967e4fec0dc6c0157f37574dd33ddd03ca3bee8
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 28 Oct 2015 14:45:10 +0000 (28 14:45 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Jan 2016 08:59:38 +0000 (7 16:59 +0800)
tree5838384f79d41ef38075e24da513d12d71af7366
parentc6daed8654bb1a4d085d9229e5a7dd5363794180
trace: fix make foo-timestamp rules

The Makefile uses intermediate timestamp files to avoid rebuilding if
tracetool output is unchanged.

Timestamps are implemented incorrectly.  This was fixed for rules.mak in
commit 4b25966ab976f3a7fd9008193b2defcc82f8f04d ("rules.mak: cleanup
config generation rules") but never fixed in trace/Makefile.objs.

The problem with the old timestamp implementation was that make doesn't
notice the updated file modification time until the next time it is run.
It was necessary to run make twice in a row to achieve a full rebuild.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
trace/Makefile.objs