Hi Mark,
my understanding is that : was replaced by :: to force regeneration
of the depend file on every make invocation as described here
http://www.gnu.org/software/autoconf/manual/make/Double_002dColon.html
On the other hand, the 'depend' target is not listed as a prerequisite
of any other target; I would therefore add
Makefile: depend
line and leave :: in place. I would also not regenerate depend on 'clean'.
Best,
Volodymyr
On Thu, August 20, 2009 19:03, Mark Williamson wrote:
> Dear all,
>
> On a fresh checkout of the tree (~15:30 20th Aug 2009), I am seeing this
> build fail:
>
> [bunny:0.20][mjw:src]$ ./configure_amber gfortran
>
> [bunny:0.20][mjw:src]$ make
>
> <...snippy snip snip ....>
>
> Makefile:349: depend: No such file or directory
> ./checkserconf
> cpp -traditional -P -DNO_SANDER_DIVCON -xassembler-with-cpp
> -Dsecond=ambsecond -DBINTRAJ nose_hoover_init.f > _nose_hoover_init.f
> gfortran -c -O0 -fno-second-underscore -ffree-form -o
> nose_hoover_init.o _nose_hoover_init.f
> In file _nose_hoover_init.f:3
>
> use pimd_vars, only: nbead,NMPIMD,CMD,ipimd
> 1
> Fatal Error: Can't open module file 'pimd_vars.mod' for reading at (1):
> No such file or directory
> make[1]: *** [nose_hoover_init.o] Error 1
> make[1]: Leaving directory `/tmp/amber_tmp/amber11/src/sander'
> make: *** [serial] Error 2
>
>
>
>
>
>
> It seems that the ./src/sander/depends file is not being created and
> ironically, a "make clean" seems to create it:
>
> [bunny:0.20][mjw:src]$ file ./sander/depend
> ./sander/depend: cannot open (./sander/depend)
>
> [bunny:0.20][mjw:src]$ make clean
> <...more snippy...>
>
> [bunny:0.33][mjw:src]$ file ./sander/depend
> ./sander/depend: ASCII English text
>
> Interestingly, if I change the depend rule from a double colon rule to a
> single colon rule in the ./sander/Makefile, this seems to fix it.
>
> [bunny:0.12][mjw:src]$ cvs diff ./sander/Makefile
> Index: ./sander/Makefile
> ===================================================================
> RCS file: /home/amber_cvs/cvsroot/amber11/src/sander/Makefile,v
> retrieving revision 10.36
> diff -r10.36 Makefile
> 338c338
> < depend::
> ---
> > depend:
>
> Could this be regarded as a suitable fix or have I overlooked something?
> I'm not a Makefile guru (yet...) ;)
>
> regards,
>
> Mark
>
> _______________________________________________
> AMBER-Developers mailing list
> AMBER-Developers.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber-developers
>
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Aug 20 2009 - 18:11:06 PDT