diff --git a/Makefile.am b/Makefile.am
index 7425e2221083cdde9138189b49b2271c8e77b305..d38f1157232c583c38db13ba4800f579fce9ee80 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -618,7 +618,7 @@ doc/man-html/index.html: doc/manpages-enabled.rst $(mandocrst)
 doc/html/index.html doc/man-html/index.html: $(docinput) doc/conf.py \
 	configure.ac $(RUN_IN_TEMPDIR) lib/build/sphinx_ext.py \
 	lib/build/shell_example_lexer.py lib/opcodes.py lib/ht.py \
-	doc/css/style.css \
+	doc/css/style.css lib/rapi/connector.py lib/rapi/rlib2.py \
 	| $(BUILT_PYTHON_SOURCES)
 	@test -n "$(SPHINX)" || \
 	    { echo 'sphinx-build' not found during configure; exit 1; }