Skip to contentSkip to conversation

tests: Makefile: include dependency files

PATCH RESEND Applied Eduardo Habkost 3 participants 3 messages Jul 18, 2012 – Jul 28, 2012

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 tests: Makefile: include dependency files

Otherwise 'make check' won't recompile files that need to be recompiled because of header changes.

To reproduce the bug, run:

 $ make check  # succeeds
 $ echo B0RKED > hw/mc146818rtc_regs.h
 $ make check  # is supposed to try to rebuild tests/rtc-test.o and fail
---
 tests/Makefile |    2 ++
 1 file changed, 2 insertions(+)
tests/Makefile +2 -0
index d66ab19..b3f7494 100644
@@ -143,3 +143,5 @@ check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
 check-unit: $(patsubst %,check-%, $(check-unit-y))
 check-block: $(patsubst %,check-%, $(check-block-y))
 check: check-unit check-qtest
+
+-include $(wildcard tests/*.d)
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw

----- Messaggio originale -----

Quoted 34 lines

Da: "Eduardo Habkost" <[email protected]>
A: [email protected]
Cc: "Paolo Bonzini" <[email protected]>, "Anthony Liguori" <[email protected]>
Inviato: Mercoledì, 18 luglio 2012 19:22:27
Oggetto: [PATCH resend] tests: Makefile: include dependency files

Otherwise 'make check' won't recompile files that need to be recompiled
because of header changes.

To reproduce the bug, run:

 $ make check  # succeeds
 $ echo B0RKED > hw/mc146818rtc_regs.h
 $ make check  # is supposed to try to rebuild tests/rtc-test.o and
 fail
---
 tests/Makefile |    2 ++
 1 file changed, 2 insertions(+)
tests/Makefile +2 -1
index d66ab19..b3f7494 100644
@@ -143,3 +143,5 @@ check-qtest: $(patsubst %,check-qtest-%,
 $(QTEST_TARGETS))
 check-unit: $(patsubst %,check-%, $(check-unit-y))
 check-block: $(patsubst %,check-%, $(check-block-y))
 check: check-unit check-qtest
+
+-include $(wildcard tests/*.d)
--
Quoted 1 line

1.7.10.4

Applied
#2 lore raw
In reply to Eduardo Habkost
Quoted 10 lines · Eduardo Habkost

Otherwise 'make check' won't recompile files that need to be recompiled because of header changes.

To reproduce the bug, run:

 $ make check  # succeeds
 $ echo B0RKED > hw/mc146818rtc_regs.h
 $ make check  # is supposed to try to rebuild tests/rtc-test.o and fail

Thanks, applied.

Quoted 18 lines
---
 tests/Makefile |    2 ++
 1 file changed, 2 insertions(+)
tests/Makefile +2 -1
index d66ab19..b3f7494 100644
@@ -143,3 +143,5 @@ check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
 check-unit: $(patsubst %,check-%, $(check-unit-y))
 check-block: $(patsubst %,check-%, $(check-block-y))
 check: check-unit check-qtest
+
+-include $(wildcard tests/*.d)
--

1.7.10.4