summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_docs_targets.prf
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2016-01-12 09:01:52 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-01-12 11:07:56 +0100
commit6b8c0a50585bb637c5cd33ca8ffde0cb9c4e3664 (patch)
tree12647726671357a571e2b371b0e33199efb08156 /mkspecs/features/qt_docs_targets.prf
parent66d94ea30be9c4c8cc81a52134022eb662bedd77 (diff)
parentca7f1d2197f78ec3332cfd86ab9921730b6d4f23 (diff)
Merge remote-tracking branch 'origin/5.6' into dev
Diffstat (limited to 'mkspecs/features/qt_docs_targets.prf')
-rw-r--r--mkspecs/features/qt_docs_targets.prf20
1 files changed, 10 insertions, 10 deletions
diff --git a/mkspecs/features/qt_docs_targets.prf b/mkspecs/features/qt_docs_targets.prf
index 89f080cc5e..1f9e2b0b47 100644
--- a/mkspecs/features/qt_docs_targets.prf
+++ b/mkspecs/features/qt_docs_targets.prf
@@ -29,17 +29,17 @@ QMAKE_EXTRA_TARGETS += docs
contains(TEMPLATE, subdirs) {
for(inst, DOC_TARGETS): \
prepareRecursiveTarget($$inst)
-} else:debug_and_release:!build_pass {
- sub = $$first(BUILDS)
- for(inst, DOC_TARGETS) {
- $${inst}.CONFIG = recursive
- $${inst}.recurse = $$sub
- }
} else {
- # apps and libs only generate docs if QMAKE_DOCS is set
- !isEmpty(QMAKE_DOCS) {
- # backwards compat hack
- load(qt_docs)
+ debug_and_release:!build_pass {
+ sub = $$first(BUILDS)
+ for(inst, DOC_TARGETS) {
+ $${inst}.CONFIG = recursive
+ $${inst}.recurse = $$sub
+ }
}
+ # Apps and libs request docs creation by setting QMAKE_DOCS.
+ # This is a backwards compat hack - technically, the modules which need it
+ # are supposed to load(qt_docs) themselves.
+ !isEmpty(QMAKE_DOCS): load(qt_docs)
}
QMAKE_EXTRA_TARGETS += $$DOC_TARGETS