Makefile_GNU depend target calls main Makefile
I think the problem happens when one runs "make depend" explicitly, rather than implicitly via "make". I have now removed this explicit "make depend" command, and then I no longer see this bug.
Nevertheless, I believe this could be made more robust.
Thanks mbanck! I could reproduce this.
>I think the problem happens when one runs "make depend" explicitly
YES. "make depend" was changed to be called implicity. Users usulally can build with "make -f Makefile_GNU" only. Anyway, This will be fixed by 0.3.1 to make molds be more robust and to keep compatibility with 0.2.0.
fixed at r1591
merged to trunk at r1598
The depend target in src/Makefile_GNU has been reworked since 0.2.0, probably to make sure it is always run. However, it is now setup to run "make depend", and at least sometimes t first runs depend, then removes the file and creates it again, this time calling the "regular" src/Makefile, which specifies "mpiicpc" as CC, so it fails:
Running regular make then fails like this:
This is unfortunately not very well reproducible, but it should be made more robust I think