Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2021 11:40:45 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: passing Makefile targets to a go port
Message-ID:  <CAFDf7U%2Bsq9ChoJPBNo1x-YkE=8kpg3XGS8V-DsXSX6p2qcqBDw@mail.gmail.com>
In-Reply-To: <CAFDf7UKt1A1kxCHWmFKTBynDx3OMGBh6nwkeqJ0zQFY0MKOZ2g@mail.gmail.com>
References:  <CAFDf7UKn1%2Be4xDQ1fTFiJOuYbTSFBk362Q6whrz4g2pAkoDXqQ@mail.gmail.com> <CAFDf7UKt1A1kxCHWmFKTBynDx3OMGBh6nwkeqJ0zQFY0MKOZ2g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It seams that GO_BUILDFLAGS is the way to go to add additional targets but
I couldn't found any examples and I don't know the correct syntax to use

Nuno Teixeira <eduardo@freebsd.org> escreveu no dia domingo, 14/03/2021
=C3=A0(s) 11:37:

> GO_BUILDFLAGS
>
> Additional build arguments to be passed to go build.
>
> Nuno Teixeira <eduardo@freebsd.org> escreveu no dia domingo, 14/03/2021
> =C3=A0(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
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2Bsq9ChoJPBNo1x-YkE=8kpg3XGS8V-DsXSX6p2qcqBDw>