Problem with makedepend
807575Dec 30 2004 — edited Jan 19 2005Hi,
According to my understanding makedepend is used to generate the dependencies, so that if a header file has changed then make will compile the corresponding .o and ultimately link.
This is what which is not happening in my case.
I am using a target depends in my makefile which says
depends:
makedepend -I $(SRC_DIR) -Y $(SRC_DIR)/*.cpp 2>/dev/null
As my headers are also in the same dir as source.
On running make depends, it generates the dependencies at the end of makefile, which is perfectly ok.
But on changing any of the headers it doesn't compiles the respective .o, which defies the whole purpose of makedepend.
Is something wrong in my command, or am i doing something wrong.
Any help will be appreciated.
Thanks