Makefile: Include dependencies for test tools, too

Message ID 1303324088-54679-1-git-send-email-martin@martin.st
State Committed
Commit f83acb096c0ea1ec181941c141d1ab6fb24820eb
Headers show

Commit Message

Martin Storsjö April 20, 2011, 6:28 p.m.
This makes seek_test to be rebuilt when its dependencies
has changed. The changes to the dependencies didn't usually matter
in practice, but the introduction of side data in AVPacket required
a recompilation.
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Mans Rullgard April 20, 2011, 6:38 p.m. | #1
Martin Storsjö <martin@martin.st> writes:

> This makes seek_test to be rebuilt when its dependencies
> has changed. The changes to the dependencies didn't usually matter
> in practice, but the introduction of side data in AVPacket required
> a recompilation.
> ---
>  Makefile |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 0bf04d1..f8e68d6 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -87,6 +87,7 @@ tools/%.o: tools/%.c
>  	$(CC) $(CPPFLAGS) $(CFLAGS) -c $(CC_O) $<
>  
>  -include $(wildcard tools/*.d)
> +-include $(wildcard tests/*.d)
>  
>  ffplay.o: CFLAGS += $(SDL_CFLAGS)

OK

Patch

diff --git a/Makefile b/Makefile
index 0bf04d1..f8e68d6 100644
--- a/Makefile
+++ b/Makefile
@@ -87,6 +87,7 @@  tools/%.o: tools/%.c
 	$(CC) $(CPPFLAGS) $(CFLAGS) -c $(CC_O) $<
 
 -include $(wildcard tools/*.d)
+-include $(wildcard tests/*.d)
 
 ffplay.o: CFLAGS += $(SDL_CFLAGS)