diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-06-12 17:22:29 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-06-13 09:06:08 +0200 |
commit | 8b3b8bced7b258b2cc94aa700c7e0ce07a6efee5 (patch) | |
tree | ea7d3a80844903e416f264beaba7649cb6f3189a /doc/doc.pri | |
parent | dd3b5c005ed534a5151d49b4a060f93d02c472e2 (diff) |
Fix documentation installation for qmake.
- Do not build docs when installation is requested.
- Introduce a nicely named target ("install_docs").
Change-Id: Ia75503e55adec84fe12a6adfe3cd6acbdd545e34
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'doc/doc.pri')
-rw-r--r-- | doc/doc.pri | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/doc.pri b/doc/doc.pri index 7c6491a06..f1ea69935 100644 --- a/doc/doc.pri +++ b/doc/doc.pri @@ -47,21 +47,22 @@ HELP_DEP_FILES = $$PWD/qbs.qdoc \ html_docs.commands = $$QDOC $$QDOC_MAINFILE html_docs.depends += $$HELP_DEP_FILES -html_docs.files = $$QHP_FILE qch_docs.commands = $$HELPGENERATOR -o $$shell_quote($$QCH_FILE) $$QHP_FILE qch_docs.depends += html_docs -qch_docs.files = $$QCH_FILE -qch_docs.path = $${QBS_INSTALL_PREFIX}/share/doc/qbs -qch_docs.CONFIG += no_check_exist +inst_qch_docs.files = $$QCH_FILE +inst_qch_docs.path = $${QBS_INSTALL_PREFIX}/share/doc/qbs +inst_qch_docs.CONFIG += no_check_exist no_default_install +INSTALLS += inst_qch_docs -html_files.depends += html_docs -html_files.files = $$HTML_DOC_PATH -html_files.path = $$qch_docs.path -html_files.CONFIG += no_check_exist no_default_install directory +inst_html_docs.files = $$HTML_DOC_PATH +inst_html_docs.path = $$inst_qch_docs.path +inst_html_docs.CONFIG += no_check_exist no_default_install directory +INSTALLS += inst_html_docs -INSTALLS += qch_docs html_files +install_docs.depends = install_inst_qch_docs install_inst_html_docs +QMAKE_EXTRA_TARGETS += install_docs docs.depends = qch_docs QMAKE_EXTRA_TARGETS += html_docs qch_docs docs |