Makefile: fix dependencies for generated .h, .c
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 16 Nov 2011 21:58:18 +0000 (23:58 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 17 Nov 2011 17:15:31 +0000 (15:15 -0200)
commita2c54b0578da18add46c2e93521fa2bcb7380ebe
tree99bd72984ae5b4664c329f52a15d7017d6ad542b
parent6277f3df54b9f7469954866a36e176d46b9648ee
Makefile: fix dependencies for generated .h, .c

We have a single rule generating .c and .h files,
so .h doesn't depend on .c: both depend on the
source schema.

Fix Makefile to reflect that - without this,
if .c is there and .h is missing, Makefile does
not know how to remake .h and assumes it's
a dummy target, triggering endless rebuilds.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Makefile