BUILD: makefile: build flags.c before haproxy to speed up the build

The end of the build is often super slow. In practice it's flags.o that
now takes ages (3.4 seconds) and blocks everything on a single core at
the end. Let's declare it before the haproxy target so that it starts
earlier. On a quad-2.2 GHz CPU, the build time goes down from 44 to 42s
and the end feels less painful.
This commit is contained in:
Willy Tarreau 2024-11-20 17:34:36 +01:00
parent 667ac8acc6
commit f16edcd34c
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ all:
@echo
@exit 1
else
all: haproxy dev/flags/flags $(EXTRA)
all: dev/flags/flags haproxy $(EXTRA)
endif # obsolete targets
endif # TARGET