build: Pass -j flags to ninja build steps too.

This commit is contained in:
Rémi Bernon 2021-04-02 16:56:15 +02:00
parent bb4c28c6ac
commit b84a7593b7
No known key found for this signature in database
GPG key ID: 38D0E5827B54E5C9

View file

@ -31,7 +31,7 @@ $$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/meson.build
$$(OBJ)/.$(1)-build$(3):
@echo ":: building $(3)bit $(1)..." >&2
env $$($(2)_ENV$(3)) \
ninja -C "$$($(2)_OBJ$(3))" install
ninja $$(filter -j%,$$(MAKEFLAGS)) -C "$$($(2)_OBJ$(3))" install
touch $$@
endif
endef