OSDN Git Service

Do not calculate dependencies for header files in the .vhookdepend target.
authorDiego Biurrun <diego@biurrun.de>
Wed, 12 Mar 2008 09:42:36 +0000 (09:42 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 12 Mar 2008 09:42:36 +0000 (09:42 +0000)
Originally committed as revision 12422 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile

index 686b6b0..93f8715 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -227,7 +227,7 @@ depend dep: .depend .vhookdep
 
 # gcc stupidly only outputs the basename of targets with -MM
 .vhookdep: $(ALLHOOKS_SRCS) version.h
-       $(CC) $(VHOOKCFLAGS) -MM $^ | sed 's,^\([a-z]\),vhook/\1,' > $@
+       $(CC) -MM $(VHOOKCFLAGS) $(filter-out %.h,$^) | sed 's,^\([a-z]\),vhook/\1,' > $@
 
 $(DEP_LIBS): lib