X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/bded6e9b33e96b45ac96edbbbafe6788f1846e02..820eb576359dea97212089e7e0f2dc61011ed173:/include/host-build.mk diff --git a/include/host-build.mk b/include/host-build.mk index 39de66bb9..af46c3e24 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -78,6 +78,15 @@ define Host/Compile $(call Host/Compile/Default) endef +define Host/Install/Default + $(MAKE) -C $(HOST_BUILD_DIR) install +endef + +define Host/Install + $(call Host/Install/Default) +endef + + ifneq ($(if $(HOST_QUILT),,$(CONFIG_AUTOREBUILD)),) define HostHost/Autoclean $(call rdep,${CURDIR} $(PKG_FILE_DEPEND),$(HOST_STAMP_PREPARED)) @@ -94,6 +103,14 @@ define Download/default MD5SUM:=$(PKG_MD5SUM) endef +define Host/Exports/Default + $(1) : export ACLOCAL_INCLUDE=$$(foreach p,$$(wildcard $$(STAGING_DIR_HOST)/share/aclocal $$(STAGING_DIR_HOST)/share/aclocal-*),-I $$(p)) + $(1) : export STAGING_PREFIX=$$(STAGING_DIR_HOST) + $(1) : export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig + $(1) : export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig +endef +Host/Exports=$(Host/Exports/Default) + ifndef DUMP define HostBuild $(if $(HOST_QUILT),$(Host/Quilt)) @@ -106,10 +123,12 @@ ifndef DUMP $(call Host/Prepare) touch $$@ + $(call Host/Exports,$(STAMP_CONFIGURED)) $(HOST_STAMP_CONFIGURED): $(HOST_STAMP_PREPARED) $(call Host/Configure) touch $$@ + $(call Host/Exports,$(STAMP_BUILT)) $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) $(call Host/Compile) touch $$@