David Cantrell <david.l.cantr...@gmail.com> wrote: > pre-fetch: > .if !exists(${DISTDIR}/${DISTNAME}.tar.gz) > > The problem I'm hitting is that !exists() is not working as I > think it should.
.if conditions are evaluated on the spot and... > exists() ignores ${DISTDIR} entirely. ... I bet DISTDIR simply isn't set when the condition is evaluated, because the variable is only assigned a value later on when bsd.port.mk is included. make(1) usually uses lazy evaluation, but .if, .for, and := are evaluated right when their lines are parsed. -- Christian "naddy" Weisgerber na...@mips.inka.de