diff --git a/Makefile b/Makefile index 07ba3d107c..3d17a1c3e4 100644 --- a/Makefile +++ b/Makefile @@ -227,7 +227,7 @@ depend dep: .depend .vhookdep $(MAKE-$(CONFIG_AVFILTER)) -C libavfilter depend .depend: $(SRCS) version.h - $(CC) -MM $(CFLAGS) $(filter-out %.h,$^) 1>.depend + $(CC) -MM $(CFLAGS) $(filter-out %.h,$^) > .depend # gcc stupidly only outputs the basename of targets with -MM .vhookdep: $(ALLHOOKS_SRCS) version.h diff --git a/common.mak b/common.mak index 46cac9f6d8..b73861944a 100644 --- a/common.mak +++ b/common.mak @@ -63,7 +63,7 @@ checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho)) # gcc stupidly only outputs the basename of targets with -MM depend dep: $(SRCS) - $(CC) -MM $(CFLAGS) $^ | sed 's,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,' 1>.depend + $(CC) -MM $(CFLAGS) $^ | sed 's,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,' > .depend clean:: rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \