OSDN Git Service

configure: Make only once with pseudo-"in source tree" builds
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sun, 19 Nov 2023 10:16:02 +0000 (19:16 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Nov 2023 15:21:55 +0000 (16:21 +0100)
commit9abbb37535b27321e9f7bde38a6996343b2bc5f2
treed5327ee252a024cca5db489a76991bb453af3727
parentcd9113633fbaf708a2181dfe886b2380874af2bc
configure: Make only once with pseudo-"in source tree" builds

Pseudo-"in source tree" build used to run make in the build directory
as many times as goals. Worse, although .NOTPARALLEL is specified,
it does not work for patterns, and run make in parallel, which can break
things.

Add a new rule "build", and let it call make. The pattern rule only
needs to specify "build" as its prerequisite and have a no-op recipe so
that it does more than canceling built-in implicit rules.

Fixes: dedad02720 ("configure: add support for pseudo-"in source tree" builds")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20231119101604.47325-1-akihiko.odaki@daynix.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure