make clean preceding make all

Rainer Müller raimue at
Mon Oct 13 01:54:52 PDT 2014

On 2014-10-13 03:11, Lawrence Velázquez wrote:
> Note that, as Ryan and I found out in #45274, GNU Make (at least) doesn't sequentially run command-line goals to completion if it's told to operate in parallel. So there's no guarantee that the "clean" target will finish before the "all" target starts.

Good catch. I am used to this approach on the command line during
development. I never experienced the problem of parallel execution
there. Your objection makes sense.

> A somewhat uglier (but more reliable) fix would be to patch the makefile to make "clean" a dependency of "all".

Yes, it is more work to maintain a patch just for that, especially if
the Makefile was generated by automake.


More information about the macports-dev mailing list