[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH resend] tests: Makefile: include dependency file
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH resend] tests: Makefile: include dependency files |
Date: |
Tue, 24 Jul 2012 07:16:18 -0400 (EDT) |
----- Messaggio originale -----
> Da: "Eduardo Habkost" <address@hidden>
> A: address@hidden
> Cc: "Paolo Bonzini" <address@hidden>, "Anthony Liguori" <address@hidden>
> 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
>
> Signed-off-by: Eduardo Habkost <address@hidden>
> ---
> tests/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/Makefile b/tests/Makefile
> index d66ab19..b3f7494 100644
> --- a/tests/Makefile
> +++ b/tests/Makefile
> @@ -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
Acked-by: Paolo Bonzini <address@hidden>