summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-08-25 15:40:43 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-08-26 16:39:34 +0300
commit8d258e3542bddfbc12c93a43f47e3ffa76d9e7e2 (patch)
tree3c35cd438fbea14ec3afff453d28424e0aeec38b /Makefile
parentaf56f0303133d553723c38df81910c076ba8a89a (diff)
downloadqtlocation-mapboxgl-8d258e3542bddfbc12c93a43f47e3ffa76d9e7e2.tar.gz
[Qt] Initial documentation stub
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4f24b41ca6..e227b3f10e 100644
--- a/Makefile
+++ b/Makefile
@@ -339,6 +339,10 @@ else
QT_ROOT_PATH = build/qt-$(BUILD_PLATFORM)-$(BUILD_PLATFORM_VERSION)
endif
+ifneq (,$(shell which qmake))
+export QT_INSTALL_DOCS = $(shell qmake -query QT_INSTALL_DOCS)
+endif
+
export QT_OUTPUT_PATH = $(QT_ROOT_PATH)/$(BUILDTYPE)
QT_BUILD = $(QT_OUTPUT_PATH)/build.ninja
@@ -409,6 +413,10 @@ run-qt-test-%: qt-test
.PHONY: run-qt-test
run-qt-test: run-qt-test-*
+.PHONY: qt-docs
+qt-docs:
+ qdoc $(shell pwd)/platform/qt/config.qdocconf --outputdir $(shell pwd)/$(QT_OUTPUT_PATH)/docs
+
#### Node targets ##############################################################
.PHONY: test-node