diff --git a/docs/meson.build b/docs/meson.build
index a7b2f00d97c99418afef8f90e922f149f3adf28a..e056d56893c5ca16c34e7b9213ea28d8ed63710e 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -18,8 +18,8 @@ endif
 
 subdir('config')
 
-docs_gen_html_content = custom_target('docs_html',
-                                      output: 'docs_html.done',
+docs_gen_html_content = custom_target('docs',
+                                      output: 'docs.done',
                                       capture: false,
                                       command: [bash, doc_build_dir + '/config/gen_content.sh', 'html'],
                                       env: docs_env)
@@ -32,8 +32,8 @@ docs_gen_latex_content = custom_target('docs_latex',
                                        depends: docs_gen_html_content,
                                        env: docs_env)
 
-docs_doctest = custom_target('docs_doctest',
-                             output: 'docs_doctest.done',
+docs_doctest = custom_target('doctest',
+                             output: 'doctest.done',
                              capture: false,
                              env: docs_env,
                              command: [sphinx, '-M', 'doctest', '-d', doc_build_dir + '/doctrees', '-c', doc_build_dir + '/config', doc_build_dir + '/sphinx', doc_build_dir + '/build/html'],