diff --git a/Makefile b/Makefile index 5b5decf74a..686b6b048c 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