changeset 27236:9cbd4395dfca

Dependency files should be refreshed when object files are rebuilt. Express this with Makefile syntax instead of in the dependency file generation command.
author diego
date Sat, 12 Jul 2008 08:23:10 +0000
parents ea35e46aa7af
children 6a283385441b
files Makefile configure
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Jul 12 08:07:54 2008 +0000
+++ b/Makefile	Sat Jul 12 08:23:10 2008 +0000
@@ -774,6 +774,7 @@
 	./version.sh `$(CC) -dumpversion`
 
 %(EXESUF): %.c
+%.o: %.d
 
 
 
--- a/configure	Sat Jul 12 08:07:54 2008 +0000
+++ b/configure	Sat Jul 12 08:23:10 2008 +0000
@@ -7816,8 +7816,8 @@
 
 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