From 4d330e24c1fcb28ed9a1fdab6d80f7f3b1392bc8 Mon Sep 17 00:00:00 2001 From: Alexander Bilyak Date: Mon, 7 Dec 2020 11:41:07 +0100 Subject: [PATCH] Add qt docs target to system-qt builds --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e781f4f2..118eab48 100644 --- a/Makefile +++ b/Makefile @@ -64,6 +64,12 @@ ifeq "${TARGET_CMD}" "Import-Export" TGZ_TARGET:=ie_${TARGET_OS}_${REVISION}.tgz endif +ifdef QT_API + VENDOR_TARGET:=prepare-vendor update-qt-docs +else + VENDOR_TARGET=update-vendor +endif + build: ${TGZ_TARGET} build-ie: TARGET_CMD=Import-Export $(MAKE) build @@ -106,7 +112,7 @@ ifneq "${GOOS}" "${TARGET_OS}" endif endif -${EXE_TARGET}: check-has-go gofiles ${ICO_FILES} update-vendor +${EXE_TARGET}: check-has-go gofiles ${ICO_FILES} ${VENDOR_TARGET} rm -rf deploy ${TARGET_OS} ${DEPLOY_DIR} cp cmd/${TARGET_CMD}/main.go . qtdeploy ${BUILD_FLAGS} ${QT_BUILD_TARGET} @@ -123,7 +129,7 @@ icon_windows.syso: icon.rc logo.ico ## Rules for therecipe/qt -.PHONY: prepare-vendor update-vendor +.PHONY: prepare-vendor update-vendor update-qt-docs THERECIPE_ENV:=github.com/therecipe/env_${TARGET_OS}_amd64_513 # vendor folder will be deleted by gomod hence we cache the big repo @@ -148,6 +154,8 @@ prepare-vendor: update-vendor: vendor-cache/${THERECIPE_ENV} prepare-vendor ${LINKCMD} +update-qt-docs: + go get github.com/therecipe/qt/internal/binding/files/docs/$(QT_API) ## Dev dependencies .PHONY: install-devel-tools install-linter install-go-mod-outdated