summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-12 08:23:10 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-12 08:23:10 +0000
commit4952dbf19a71e64af191e9a91683e35d1839805d (patch)
tree6400bea83d409da9f3a856fd00ca9697a77fd32c
parentb16d3fd6c269af9660e919cad94efa2ccae02031 (diff)
downloadmpv-4952dbf19a71e64af191e9a91683e35d1839805d.tar.bz2
mpv-4952dbf19a71e64af191e9a91683e35d1839805d.tar.xz
Dependency files should be refreshed when object files are rebuilt.
Express this with Makefile syntax instead of in the dependency file generation command. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27268 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--Makefile1
-rwxr-xr-xconfigure4
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 98bf794836..6beffe562e 100644
--- a/Makefile
+++ b/Makefile
@@ -774,6 +774,7 @@ version.h:
./version.sh `$(CC) -dumpversion`
%(EXESUF): %.c
+%.o: %.d
diff --git a/configure b/configure
index f3954135c4..bb9a950db1 100755
--- a/configure
+++ b/configure
@@ -7816,8 +7816,8 @@ HAVE_XVMC = $_xvmc
DEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,\$^) | sed "s,[0-9a-z._-]*: \(\$(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\\2&,"
-MPDEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,$^) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &,"
-MPDEPEND_CMD_CXX = \$(CC) -MM \$(CXXFLAGS) \$(filter-out %.h,$^) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &,"
+MPDEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,$^) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&,"
+MPDEPEND_CMD_CXX = \$(CC) -MM \$(CXXFLAGS) \$(filter-out %.h,$^) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&,"
EOF