From 8df4da4eb37cb4e3589c88b866d6fcac469b5e8d Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 12 Mar 2008 09:40:36 +0000 Subject: [PATCH] Use $^ without header files instead of $(SRCS) to reference the dependencies of the .depend target. $^ apparently includes the full path to files found in a vpath directory, $(SRCS) does not. This makes out of tree builds fail. Originally committed as revision 12421 to svn://svn.ffmpeg.org/ffmpeg/trunk --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5b5decf74..686b6b048 100644 --- a/Makefile +++ b/Makefile @@ -223,7 +223,7 @@ depend dep: .depend .vhookdep $(MAKE-$(CONFIG_AVFILTER)) -C libavfilter depend .depend: $(SRCS) version.h - $(CC) -MM $(CFLAGS) $(SRCS) > $@ + $(CC) -MM $(CFLAGS) $(filter-out %.h,$^) > $@ # gcc stupidly only outputs the basename of targets with -MM .vhookdep: $(ALLHOOKS_SRCS) version.h -- 2.11.0