diff --git a/ros-core/Makefile b/ros-core/Makefile
index 78aa236736dc1c1b78ca2f04af0d768d60b8d5e8..74476a2eaf9428564044b51e4d56484ba5c5f9e5 100644
--- a/ros-core/Makefile
+++ b/ros-core/Makefile
@@ -12,7 +12,9 @@ HOMEPAGE=		http://www.ros.org/wiki/ROS
 
 include ../../wip/ros18-base/Makefile.common
 
-SUBST_CLASSES+=		py-distsetup
+SUBST_CLASSES+=		py-interp py-distsetup
+
+SUBST_FILES.py-interp+=	core/roslib/scripts/gendeps
 
 include ../../archivers/bzip2/depend.mk
 include ../../devel/boost-headers/depend.mk