Ross Walker wrote:
> The clean target in the Makefile in amber9/src has the following two
lines
> for cleaning netcdf:
>
> cd netcdf/lib; rm -f libnetcdf.a
> cd netcdf/include; rm -f *
>
> The include directory does not exist in the CVS tree and so if one does
not
> build netcdf and does a Make clean in amber9/src the rm -f * command
gets
> executed in the src directory and consequently the main amber Makefile,
> configure script, config.h etc all get deleted.
>
As an aside; a possible solution could be to use a conditional execute:
cd netcdf/lib && rm -f libnetcdf.a
cd netcdf/include && rm -f *
The "&&" states that only execute the second command if the first one
returns a success (zero). The ";" will execute the second command
regardless of the return of the first.
regards,
Mark
Received on Wed Apr 05 2006 - 23:49:31 PDT