Make all object files depend on generated header files.
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 1 Mar 2009 11:03:18 +0000 (11:03 +0000)
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 1 Mar 2009 11:03:18 +0000 (11:03 +0000)
This solution does not record precise dependencies but is robust
against header dependency changes.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@28770 b3059339-0415-0410-9bf9-f77b7e298cf2

Makefile

index 5b7ad34..b60c99e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -851,10 +851,8 @@ version.h: version.sh
 
 ###### dependency declarations / specific CFLAGS ######
 
-codec-cfg.d codec-cfg.o: codecs.conf.h
-mpcommon.d vobsub.d gui/win32/gui.d libmpdemux/muxer_avi.d osdep/mplayer-rc.o stream/network.d stream/stream_cddb.d: version.h
-mpcommon.o vobsub.o gui/win32/gui.o libmpdemux/muxer_avi.o stream/network.o stream/stream_cddb.o: version.h
-$(DEPS): help_mp.h
+# Make sure all generated header files are created.
+$(DEPS) $(MENCODER_DEPS) $(MPLAYER_DEPS): codecs.conf.h help_mp.h version.h
 
 libdvdcss/%.o libdvdcss/%.d: CFLAGS += -D__USE_UNIX98 -D_GNU_SOURCE -DVERSION=\"1.2.10\" $(CFLAGS_LIBDVDCSS)
 libdvdnav/%.o libdvdnav/%.d: CFLAGS += -D__USE_UNIX98 -D_GNU_SOURCE -DHAVE_CONFIG_H -DVERSION=\"MPlayer-custom\"