]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: do not erase build options for some build options
authorWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 14:18:39 +0000 (16:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 14:23:24 +0000 (16:23 +0200)
commit9577a152b5ef8ed89d57c826b6b4b5fe50f70c0c
tree315dcde206d5a3dd814a12073eea32e94864292a
parent060769836e987a6f9b674b13b2393760b06bc030
BUILD: makefile: do not erase build options for some build options

One painfully annoying thing with the build options change detection
is that they get rebuild for about everything except when the build
target is exactly "reg-tests". But in practice every time reg tests
are run we end up having to experience a full rebuild because the
reg-tests script runs "make version" which is sufficient to refresh
the file.

There are two issues here. The first one is that we ought to skip all
targets that do not make use of the build options. This includes all
the tools such as "flags" for example, or utility targets like "tags",
"help" or "version". The second issue is that with most of these extra
targets we do not set the TARGET variable, and that one is used when
creating the build_opts file, so let's preserve the file when TARGET
is not set.

Now it's possible to re-run a make after a make reg-tests without having
to rebuild the whole project.
Makefile