diff --git a/py-sot-pattern-generator-v3/Makefile b/py-sot-pattern-generator-v3/Makefile
index 297ab5b4f8e210bf9c2c231da382fdea2688981f..7831acfa5dde1b7131d05a5a243cc9e5fbf2e013 100644
--- a/py-sot-pattern-generator-v3/Makefile
+++ b/py-sot-pattern-generator-v3/Makefile
@@ -20,7 +20,9 @@ MAINTAINER=		gepetto@laas.fr
 
 CONFLICTS+=		py[0-9][0-9]-${NAME}
 
-DYNAMIC_PLIST_DIRS+=	share/doc/${NAME}
+CMAKE_ARGS+=	-DCMAKE_INSTALL_DOCDIR=share/doc/${PKGBASE}
+
+DYNAMIC_PLIST_DIRS+=	share/doc/${PKGBASE}
 
 include ../../${CATEGORIES}/${NAME}-v3/depend.mk
 include ../../devel/boost-headers/depend.mk