How to use ${WRKDIR}, ${PREFIX} and other variables in target names?

Lev Serebryakov lev at
Sun Jan 19 10:09:13 UTC 2014

Hello, Ports.

I want to write something like this in port's Makefile


some-target: ${SOME_FILE}

    # Some commands to generate ${SOME_FILE}

 But it doesn't work. make complains, that

"I don't know how to make /distname"

 Of course, ${WRKDIR}/${DISTNAME} exists (it is directory with unpacked

 It looks like WRKDIR is not defined when target/prerequisites names are

 I've tried to use, but it doesn't help
at all.

// Black Lion AKA Lev Serebryakov <lev at>

More information about the freebsd-ports mailing list