[MITgcm-devel] makefile
Ed Hill
ed at eh3.com
Wed Jul 14 16:48:27 EDT 2004
On Wed, 2004-07-14 at 16:38, Jean-Michel Campin wrote:
> Hello Ed,
>
> I thought that the makefile was supposed to figure out
> which subroutine to re-compile, depending on the time
> of the last modifications + dependence rule.
>
> But in my case (on my laptop), it's not:
> I changed model/inc/PARAMS.h, did "make",
> typed testreport -dd -nc (or did "make" in the input dir)
> and it only recompile a few routines (thoses that
> have been modified) but not the whole set of
> S/R that includes PARAMS.h.
>
> looking for error message in make.log, I found:
> > make[1]: Nothing to be done for `links'.
> (this is what I expected)
> then 1 long line, and after:
> > make: o: Command not found
> > make: [depend] Error 127 (ignored)
> > echo: No match.
> > rm -f makedepend.out
>
> Any comments ?
Hi Jean-Michel,
It sounds like "make depend" somehow isn't working for you. If you
build with the commands:
../../../genmake2 [...OPTIONS...]
make depend
make
then the second step ("make depend") should create a list of file
dependencies at the end of your Makefile. Its that list of dependencies
that helps "make" determine what needs to be rebuilt. So, did you skip
the "make depend" stage? Or do we have a problem where one of the
"makedepend" programs isn't working correctly?
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
More information about the MITgcm-devel
mailing list