mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-01 09:00:51 +00:00
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.
This commit is contained in:
parent
d254aa8139
commit
99e49e93f8
8
Makefile
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user