From 27dce94a6783904aae9a3fd187232dbf9ee03c51 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 1 Jan 2008 17:13:56 +0000 Subject: [PATCH] Addition to the %.d dependencies: I'm adding Makefile and %.o to the dependency for %.d. This alleviates somes problems with .o files not being rebuilt when they should have been. Adding in the Makefile means that .d files are remade whenever configure is run. This isn't a total solution for what happens when defines change. However, it's a start. Adding in %.o captures changes in .h files that the .cpp files depends on. --- Cantera/src/thermo/.cvsignore | 1 + Cantera/src/thermo/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cantera/src/thermo/.cvsignore b/Cantera/src/thermo/.cvsignore index 248566acf..ced4947e3 100644 --- a/Cantera/src/thermo/.cvsignore +++ b/Cantera/src/thermo/.cvsignore @@ -8,3 +8,4 @@ HKFT_PDSS.h TODO.txt WaterEps.cpp WaterEps.h +.*swp diff --git a/Cantera/src/thermo/Makefile.in b/Cantera/src/thermo/Makefile.in index 85db48be8..028bb932c 100644 --- a/Cantera/src/thermo/Makefile.in +++ b/Cantera/src/thermo/Makefile.in @@ -86,7 +86,7 @@ all: $(LIB) .depends @(for lh in $(CATHERMO_H) ; do \ $(INSTALL_TSC) "$${lh}" $(INCDIR) ; \ done) -%.d: +%.d: Makefile $*.o @CXX_DEPENDS@ $(CXX_FLAGS) $(CXX_INCLUDES) $*.cpp > $*.d .cpp.o: