]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: fix build options when building tools first
authorWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 15:23:45 +0000 (17:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 15:23:45 +0000 (17:23 +0200)
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.

Makefile

index fad48cca67d357ecb7276b44b41425161ca19f97..c66fb45981d7787d8ce1c6149725c556d8e0e8b3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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)