2012-12-11 21:08:15 +00:00
|
|
|
#
|
|
|
|
# W A R N I N G
|
|
|
|
# -------------
|
|
|
|
#
|
|
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
|
|
# implementation detail. It may change from version to version
|
|
|
|
# without notice, or even be removed.
|
|
|
|
#
|
|
|
|
# We mean it.
|
|
|
|
#
|
|
|
|
|
2012-12-04 20:25:05 +00:00
|
|
|
DOC_TARGETS = \
|
|
|
|
install_html_docs uninstall_html_docs \
|
|
|
|
install_qch_docs uninstall_qch_docs \
|
|
|
|
install_docs uninstall_docs \
|
|
|
|
qch_docs
|
|
|
|
|
|
|
|
prepare_docs {
|
|
|
|
DOC_TARGETS += prepare_docs generate_docs
|
|
|
|
html_docs.commands = $(MAKE) -f $(MAKEFILE) prepare_docs && $(MAKE) -f $(MAKEFILE) generate_docs
|
|
|
|
QMAKE_EXTRA_TARGETS += html_docs
|
|
|
|
} else {
|
|
|
|
DOC_TARGETS += html_docs
|
|
|
|
}
|
2012-11-28 13:51:40 +00:00
|
|
|
|
2012-12-04 20:25:05 +00:00
|
|
|
docs.commands = $(MAKE) -f $(MAKEFILE) html_docs && $(MAKE) -f $(MAKEFILE) qch_docs
|
|
|
|
QMAKE_EXTRA_TARGETS += docs
|
|
|
|
|
|
|
|
contains(TEMPLATE, subdirs) {
|
|
|
|
for(inst, DOC_TARGETS): \
|
|
|
|
prepareRecursiveTarget($$inst)
|
|
|
|
} else {
|
2016-01-08 16:06:43 +00:00
|
|
|
debug_and_release:!build_pass {
|
|
|
|
sub = $$first(BUILDS)
|
|
|
|
for(inst, DOC_TARGETS) {
|
|
|
|
$${inst}.CONFIG = recursive
|
|
|
|
$${inst}.recurse = $$sub
|
|
|
|
}
|
2012-11-28 13:51:40 +00:00
|
|
|
}
|
2016-01-08 16:06:43 +00:00
|
|
|
# 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)
|
2012-12-04 20:25:05 +00:00
|
|
|
}
|
|
|
|
QMAKE_EXTRA_TARGETS += $$DOC_TARGETS
|