Passing target to source Makefile

Carsten Larsen cs at innolan.dk
Thu Jul 21 18:26:20 UTC 2016


Hi Russell,

 > I've been able to hack up the Makefile for an update of lua53 but the
> one thing still missing is the ability to pass a target for the source
> Makefile (i.e. lua's Makefile, not the ports Makefile). I need to pass
> in "freebsd" as per the build instructions for lua.
>

Assuming gnu make is used, do this:

do-build:
         ${GMAKE} -C ${WRKSRC} TARGET=insert-here

> Also, I can't seem to get make makeplist to work, but I think that's
> because the lua makefile is defaulting to install the files (due to
> the lack of target) and overriding the makeplist output?
>
> Thanks,
>
> Russell





More information about the freebsd-ports mailing list