[MITgcm-devel] make cleean Clean and CLEAN

Patrick Heimbach heimbach at MIT.EDU
Thu Nov 20 12:06:23 EST 2003


Go back to CPP_OPTIONS.h
and have Alistair drink 10 yards of Geueuze!
;o)
-p.

Alistair Adcroft wrote:
> I just did a make CLEAN to move a set-up from one machine to another and
> discovered that whereas we used to only need to move Makefile and data for
> the simplest set-up we now have to move upteen files including a sed script,
> three copies of ad_something.something which are all different,
> FC_MANGLTHING.h defining a single macro, etc...
> 
>  a) The Makefile generates AD_CONFIG.h under the target "clean:". What is
> this about?
>  b) I can't compile the model without AD_CONFIG.h - what is this about if
> I'm a forward modeller?
>  c) why is there an AD_CONFIG.template and an ad_config.template?
>  d) why is there an svd_config.template that is never used by anything I can
> see?
>  e) FC_NAMEMANGLE.h is very ugly. I think this needs to be done via the
> command-line -D
> 
> To start reducing the number of files left over after a make CLEAN, I'm
> going to:
>  1) move adjoint_sed out of genmake and into tools/
>  2) add more files to the Clean and CLEAN targets
> 
> I now see the folly in using .h files for configuration rather than using
> the command-line (you recall it was my preference for configuring packages).
> We are heading down a path where the Makefile is no longer enough to build
> the model and we're seeing an explosion of new files needed just to build.
> Ideally, all information necessary to build should be in the Makefile and
> and it used to be this way; PACKAGES_CONFIG.h breaks that and I'm wondering
> what to do about it.
> 
> A.
> --
> Dr Alistair Adcroft            http://www.mit.edu/~adcroft
> MIT Climate Modeling Initiative        tel: (617) 253-5938
> EAPS 54-1523,  77 Massachusetts Ave,  Cambridge,  MA,  USA
> 
> 
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel


-- 
Patrick Heimbach ........................... M.I.T
FON: +1/617/253-5259 .......... EAPS, Room 54-1518
FAX: +1/617/253-4464 ..... 77 Massachusetts Avenue
mailto:heimbach at mit.edu ....... Cambridge MA 02139
http://www.mit.edu/~heimbach/ .............. U.S.A




More information about the MITgcm-devel mailing list