diff --git a/Makefile b/Makefile
index 963563fdd016787bd413926b50b7f090cc74e1a1..8d82da6867c9986f294dd06a906ad3926f83520e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 
 # generate documentation
 docs:
-	cd docs && rm duniterpy.*; poetry run sphinx-apidoc -o . ../duniterpy && make clean && make html && cd ..
+	cd docs && rm duniterpy.*; poetry run sphinx-apidoc -o . ../duniterpy && poetry run make clean && poetry run make html && cd ..
 
 # run tests
 tests: