]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: makefile: properly indent ifeq/ifneq conditional blocks
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2022 14:49:56 +0000 (15:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commitf6ceb0ec4e2011e5e2b6363aeb80c8ff21f1fb1e
tree27a9b9f51b2d71f05ca6d2e3078bfda407923c2b
parent8ea58f5c768b5afc54307bbf0f34d25010427e60
CLEANUP: makefile: properly indent ifeq/ifneq conditional blocks

Some conditional blocks have become out of control over time and are
totally unreadble. It took 15 minutes to figure what "endif" matched
what "if" in the PCRE one for example, and DA and 51D use multiple
levels as well that are not easy to sort out.

Let's reindent the whole thing. Most places that were already indented
used 2 spaces per level, so here we're keeping that principle. It was
just not done on the two last ones that are used to define some rules
because we don't want spaces before rule names. A few had the opening
condition indicated on the endif line.

It would be desirable that over time this more maintainable layout is
preserved.
Makefile