]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: detect and reject recently removed linux targets
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Jun 2019 14:44:49 +0000 (16:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Jun 2019 16:03:48 +0000 (18:03 +0200)
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.

Makefile

index 1e1057adb65df9ddf0a44469f14e3496de202edb..d56ca434c3e0a63fdf6dac5d73d3705b45d20a9d 100644 (file)
--- 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=<your-target>'."
+       @echo
+       @exit 1
 else
 all: haproxy $(EXTRA)
 endif