build: avoid rebuilds of unset VARIANT packages
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Fri, 22 Oct 2021 19:12:10 +0000 (16:12 -0300)
committerFelix Fietkau <nbd@nbd.name>
Mon, 1 Nov 2021 19:18:55 +0000 (20:18 +0100)
commit19aae949c608c8e78475988a8c7b453b8187d865
tree7de52b940b0c3ee7d085e50706e435ccf7574d4c
parent6b8b5e7248fd8562e8cdd5ef6f3d52f51418fc3b
build: avoid rebuilds of unset VARIANT packages

If a Makefile defines some packages with VARIANT set, and others without
it, the latter will be built once for every different VARIANT set, each
build trumping the previous one.

Avoid rebuilds by only building unnamed variant packages when the first
variant is built.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
include/package-bin.mk
include/package-ipkg.mk
include/subdir.mk