From: Willy Tarreau Date: Wed, 24 May 2023 15:23:45 +0000 (+0200) Subject: BUILD: makefile: fix build options when building tools first X-Git-Tag: v2.8-dev13~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6777357a5e0d3d45a555253949582f722773a025;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/Makefile b/Makefile index fad48cca67..c66fb45981 100644 --- 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)