diff --git a/Makefile.am b/Makefile.am
index 09c4b1b77961384321120381416110343e6df8af..1be31aac4b0ed5d5827fffc019b888390641350a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -504,7 +504,7 @@ doc/examples/hooks/%: doc/examples/hooks/%.in \
 	sed -f $(REPLACE_VARS_SED) < $< > $@
 
 doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \
-	lib/cli.py $(gnt_scripts) tools/burnin
+	lib/cli.py $(gnt_scripts) $(client_PYTHON) tools/burnin
 	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@
 
 doc/%.png: doc/%.dot