diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk index c39a8515..87de5018 100644 --- a/package/pkg-meson.mk +++ b/package/pkg-meson.mk @@ -159,7 +159,7 @@ define host-meson-package $(eval PKG_MODE = $(pkg-mode)) $(call PREPARE,$(1)) $(call HOST_MESON_CONFIGURE) - $(call HOST_NINJA_BUILD) - $(call HOST_NINJA_INSTALL) + $(if $(filter $(1),$(PKG_NO_BUILD)),,$(call HOST_NINJA_BUILD)) + $(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call HOST_NINJA_INSTALL)) $(call HOST_FOLLOWUP) endef