[MITgcm-devel] make depend exit status

Jean-Michel Campin jmc at ocean.mit.edu
Thu May 22 21:46:55 EDT 2008


Hi,

I discover that "make depend" (on linux FC ...) 
can return an exit status of zero (as if everything was OK)
even when some files are missing:

> makedepend -o .f -D .....(long list of .F files)
> makedepend: warning:  land_mnc_init.F, line 42: cannot find include file "mnc_common.h"
>         not in mnc_common.h
>         not in mnc_common.h
>         not in /usr/include/netcdf-3/mnc_common.h
>         not in /usr/include/mnc_common.h
> ../../../tools/f90mkdepend >> Makefile
> cat: mnc_common.h: No such file or directory
> cat: mnc_common.h: No such file or directory
> rm -f makedepend.out
> danton{bld_g77}% echo $?
> 0

And since testreport is checking the exit status of make depend,
it will not catch this error and will return a
'make depend ...  successful'

Is this well know (except from me) or is it something unusual ?

Jean-Michel

PS: Thanks to Martin, I am learning something ...



More information about the MITgcm-devel mailing list