Patchwork [5/5] Makefile: Remove generated headers on clean

login
register
mail settings
Submitter Stefan Hajnoczi
Date Jan. 19, 2012, 10:32 a.m.
Message ID <1326969127-22458-6-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/136809/
State New
Headers show

Comments

Stefan Hajnoczi - Jan. 19, 2012, 10:32 a.m.
From: Andreas Färber <andreas.faerber@web.de>

Running `make distclean' followed by a new out-of-tree build would fail
due to stale generated QMP headers in the tree.

Commit 611b727374ad76fb0078ea65bc1387194913980e (Makefile: remove more
generated files on clean) made sure generated sources are removed.

Also remove generated headers introduced in commit
e3193601c84558c303b1773379da76fce80c0a56 (qapi: use middle mode in QMP
server).

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/Makefile b/Makefile
index d356f07..917fb9b 100644
--- a/Makefile
+++ b/Makefile
@@ -213,6 +213,7 @@  clean:
 	rm -f trace.c trace.h trace.c-timestamp trace.h-timestamp
 	rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
 	rm -f trace-dtrace.h trace-dtrace.h-timestamp
+	rm -f $(GENERATED_HEADERS)
 	rm -f $(GENERATED_SOURCES)
 	rm -rf $(qapi-dir)
 	$(MAKE) -C tests/tcg clean