Date: Thu, 2 Aug 2018 09:30:56 -0700 From: "Simon J. Gerraty" <sjg@juniper.net> To: Eric McCorkle <eric@metricspace.net> Cc: <freebsd-hackers@freebsd.org>, <sjg@juniper.net> Subject: Re: A few build system questions Message-ID: <72047.1533227456@kaos.jnpr.net> In-Reply-To: <bedd6e76-bbe4-7690-70ed-041bbe7970f7@metricspace.net> References: <bedd6e76-bbe4-7690-70ed-041bbe7970f7@metricspace.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric McCorkle <eric@metricspace.net> wrote: > Second, how do I arrange to have sources be generated prior to the > build? I can probably get away with having a shell script that does it, > but I may require a tool to be built. [I think brooks answered the others.] You can use the 'beforebuild' target to trigger that. If however the src generation is non-trvial and especially if you need to build them for multiple arch, it is better to do the generation in a separate dir (eg subdir like gen/) so that it is easy to do the generation once only. Separate dirs make build orchestration simpler.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72047.1533227456>