passing Makefile targets to a go port

Nuno Teixeira eduardo at freebsd.org
Sun Mar 14 11:37:36 UTC 2021


GO_BUILDFLAGS

Additional build arguments to be passed to go build.

Nuno Teixeira <eduardo at freebsd.org> escreveu no dia domingo, 14/03/2021
à(s) 11:30:

> Hello,
>
> I'm working on updating security/gopass.
>
> New version added a gopass.1 man file but it is needed to run "gmake man"
> in WRKSRC.
> How do I pass "gmake man" to go port Makefile?
>
> In the other hand, this port uses a:
> ---
> post-build:
> .for SHELL in bash fish zsh
>         ${GO_WRKDIR_BIN}/${PORTNAME} completion ${SHELL} >
> ${WRKSRC}/${SHELL}
> .endfor
> ---
> to create completion files, and it can be accomplished with "gmake
> completion" at WRKSRC.
>
> It was cool that it is a way to add "completion" and "man" targets to
> gopass port.
>
> gopass Makefile <https://github.com/gopasspw/gopass/blob/master/Makefile>
>
> Cheers,
> Nuno Teixeira
>


More information about the freebsd-ports mailing list