[MITgcm-devel] genmake2 fails with netcdf on SUN

Martin Losch mlosch at awi-bremerhaven.de
Wed Jan 5 09:26:54 EST 2005


Good idea .template was not in the line, unfortunately it doesn't make 
a difference.
For simple testing it's sufficient to go to pkg/mnc and do this:
> rays1::mnc> make MNC_CW_READWRITE_RS.F
> cat  | sed -e 's/RX/RS/g' | sed -e 's/__V/_RS/g' > 
> MNC_CW_READWRITE_RS.F
> ^C
> *** MNC_CW_READWRITE_RS.F removed.
> rays1::mnc> dmake MNC_CW_READWRITE_RS.F
> dmake: defaulting to parallel mode.
> See the man page dmake(1) for more information on setting up the 
> .dmakerc file.
> rays1 --> 1 job
> cat  | sed -e 's/RX/RS/g' | sed -e 's/__V/_RS/g' > 
> MNC_CW_READWRITE_RS.F
> ^Crays1::mnc> gmake MNC_CW_READWRITE_RS.F
> cat mnc_cw_readwrite.template | sed -e 's/RX/RS/g' | sed -e 
> 's/__V/_RS/g' > MNC_CW_READWRITE_RS.F
> rays1::mnc>

When I replace $< by mnc_cw_readwrite.template, both /usr/ccs/bin/make 
and dmake work. This is true with both .template in the .SUFFIXES line 
and without.

I have no clue.
Martin


On Jan 5, 2005, at 2:56 PM, Alistair Adcroft wrote:

> Martin,
>
> Hope you're getting enough abuse.
>
> > MNC_CW_READWRITE_RS.F: mnc_cw_readwrite.template
> >     cat $< | sed -e 's/RX/RS/g' | sed -e 's/__V/_RS/g' > $@
>
> Is .template in the .SUFFIXES line? I forget wether it should come 
> before or afer .F but one is better than the other.
>
> A.
>
>
> -- 
> Dr Alistair Adcroft            http://www.mit.edu/~adcroft
> MIT Climate Modeling Initiative        tel: (617) 253-5938
> EAPS 54-1624,  77 Massachusetts Ave,  Cambridge,  MA,  USA
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel




More information about the MITgcm-devel mailing list