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.
This commit is contained in:
parent
6bdbc1361d
commit
27dce94a67
2 changed files with 2 additions and 1 deletions
|
|
@ -8,3 +8,4 @@ HKFT_PDSS.h
|
|||
TODO.txt
|
||||
WaterEps.cpp
|
||||
WaterEps.h
|
||||
.*swp
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue