BUILD: makefile: fix build options when building tools first

Due to the test on the target introduced by commit 9577a152b ("BUILD:
makefile: do not erase build options for some build options"), if a
tool (e.g. halog) is build first before haproxy after a clean or a
fresh source extraction, the .build_opts file does not exist and
"make" complains since there's no such target. Make sure to define
the empty target for all "else" blocks there. No backport is needed.
This commit is contained in:
Willy Tarreau 2023-05-24 17:23:45 +02:00
parent af26361837
commit 6777357a5e
1 changed files with 2 additions and 0 deletions

View File

@ -984,6 +984,8 @@ build_opts = $(shell rm -f .build_opts.new; echo \'$(TARGET) $(BUILD_OPTIONS) $(
else
.build_opts:
endif # ignore_opts
else
.build_opts:
endif # non-empty target
haproxy: $(OPTIONS_OBJS) $(OBJS)