From: Willy Tarreau Date: Fri, 14 Jun 2019 14:44:49 +0000 (+0200) Subject: BUILD: makefile: detect and reject recently removed linux targets X-Git-Tag: v2.0.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e49e93f8f379ac2c01411c38f4dbec30eb1bd4;p=thirdparty%2Fhaproxy.git BUILD: makefile: detect and reject recently removed linux targets We've just removed old linux targets "linux22", "linux24", "linux24e", "linux26" and "linux2628" and it's likely that many build scripts and packages will still reference these. So let's have the makefile detect these and reject with instructions instead of silently building with incorrect options. --- diff --git a/Makefile b/Makefile index 1e1057adb6..d56ca434c3 100644 --- a/Makefile +++ b/Makefile @@ -741,6 +741,14 @@ all: @echo "out of it. Please check the Makefile in case of doubts." @echo @exit 1 +else ifneq ($(filter $(TARGET), linux linux22 linux24 linux24e linux26 linux2628),) +all: + @echo + @echo "Target '$(TARGET)' was removed from HAProxy 2.0 due to being irrelevant and" + @echo "often wrong. Please use 'linux-glibc' instead or define your custom target" + @echo "by checking available options using 'make help TARGET='." + @echo + @exit 1 else all: haproxy $(EXTRA) endif