A few build system questions
Simon J. Gerraty
sjg at juniper.net
Thu Aug 2 16:31:04 UTC 2018
Eric McCorkle <eric at 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.
More information about the freebsd-hackers
mailing list