diff --git a/git-hooks/qdoc-bot b/git-hooks/qdoc-bot
index dfa8610e053ed8c01275d92598716b100471f28b..a540c0b76f3d120dfbf6912d68852e4abbf11d16 100755
--- a/git-hooks/qdoc-bot
+++ b/git-hooks/qdoc-bot
@@ -72,7 +72,7 @@ def run_qdoc(module_name):
         environment["QT_HASH_SEED"] = "1234"
         cmd = "(./configure -opensource -confirm-license -release && make sub-src-qmake_all && cd src/tools && make sub-qdoc) > /dev/null"
         subprocess.check_call(cmd, shell=True, env=environment)
-        cmd = "make docs".split()
+        cmd = "make html_docs".split()
         output.append(subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=environment).communicate()[1])
         def smart_concatenate(r, x):
             # concatenate multi-line comments