[MITgcm-devel] genmake2 fails with netcdf on SUN

Alistair Adcroft adcroft at mit.edu
Wed Jan 5 10:32:38 EST 2005


Martin

Why don't you either
  1) Replace the $< and $@ macros
or
  2) Change the case of one of the file names, if there are plans to 
have many more files

I'm sure Ed will be happy for you to do either because it will lead to 
him getting less abuse from you.  :-)

A.


Martin Losch wrote:
> Alistair, this will not work because the target and depency do not have 
> the same root name (see for yourself in pkg/mnc/Makefile):
> MNC_CW_READWRITE_RS.F: mnc_cw_readwrite.template
>     cat $< | sed -e 's/RX/RS/g' | sed -e 's/__V/_RS/g' > $@
> MNC_CW_READWRITE_RL.F: mnc_cw_readwrite.template
>     cat $< | sed -e 's/RX/RL/g' | sed -e 's/__V/_RL/g' > $@
> MNC_CW_READWRITE_I.F: mnc_cw_readwrite.template
>     cat $< | sed -e 's/RX/I/g' | sed -e 's/__V/INTEGER/g' > $@
> 
> These are actually the only three instances of a .template.F rule. It 
> may make sense to replace $< with mnc_cw_readwrite.template in these 
> three cases, as long as Ed didn't plan to extend this Makefile 
> infinitely. Ed, what's your opinion?


-- 
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



More information about the MITgcm-devel mailing list