]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: make the obsolete target detection compatible with make-3.80
authorWilly Tarreau <w@1wt.eu>
Sun, 16 Jun 2019 15:53:39 +0000 (17:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 16 Jun 2019 15:53:39 +0000 (17:53 +0200)
Older versions of GNU make do not support "else ifneq", let's split
this in two lines.

Makefile

index a9b21b97c03f61a8cf86e9ee6eb73db45c88a27e..785e313ad626c4bbda9d800e1a09400aa27c73e6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -742,7 +742,8 @@ 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),)
+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"
@@ -753,6 +754,7 @@ all:
 else
 all: haproxy $(EXTRA)
 endif
+endif
 
 OBJS = src/proto_http.o src/cfgparse-listen.o src/proto_htx.o src/stream.o    \
        src/mux_h2.o src/stats.o src/flt_spoe.o src/server.o src/checks.o      \