[MITgcm-devel] makedepend, again
Martin Losch
mlosch at awi-bremerhaven.de
Wed Mar 9 09:20:42 EST 2005
Ed,
are you sure that look_for_makedepend in genmake2 work properly?
when I run genmake2 on our opteron cluster (with linux_amd64_pgf77_ocl)
for the first time, I get this message:
a system-default makedepend was not found.
WARNING: unable to build cyrus-imapd-makedepend
and I end up with xmakedepend in my Makefile
(MAKEDEPEND=${TOOLS}/xmakdepend).
Then I run "make makefile", I don't get these messages again and I
have MAKEDEPEND=makedepend in Makefile.
This is what happens:
the first time around look_for_makedepend looks for makedepend:
which makedepend > /dev/null 2>&1 (and finds /usr/bin/X11/makedepend, I
checked that)
then it creates a little program genmake_tc.f and runs makedepend on
it, but this is not successful:
makedepend: error: [mM]akefile is not present
and then it fails to build the cyrus-imapd-makedepend for whatever
reason and then it substitutes xmakedepend
the second time aroung (with make makefile) there is a Makefile present
and all tests with the systemwide default pass.
I know now how to deal with this, but can genmake2 be generalized to
get rid off this problem?
Martin
PS. as usual I cannot give an account on this machine )o:
More information about the MITgcm-devel
mailing list