make clean preceding make all

Rainer Müller raimue at macports.org
Sun Oct 12 13:53:18 PDT 2014


On 2014-10-12 22:16, Mark Brethen wrote:
> How does one setup a portfile to do a 'make clean' before a 'make all'? I thought of using
> 
>     pre-build {        
>         system -W ${somedir} "${build.cmd} clean"
>     }

You can just give make both targets:

build.target clean all

Rainer


More information about the macports-dev mailing list