diff --git a/storage/innodb_plugin/Makefile.am b/storage/innodb_plugin/Makefile.am
index 9f59363508833e2c0c7e73194b2b4341437250b5..19c9858a3f3c360cd74b5f2c328c3a4d7589d7cb 100644
--- a/storage/innodb_plugin/Makefile.am
+++ b/storage/innodb_plugin/Makefile.am
@@ -131,7 +131,7 @@ noinst_HEADERS=		include/btr0btr.h include/btr0btr.ic		\
 			include/ut0list.ic include/ut0wqueue.h		\
 			include/ha_prototypes.h handler/ha_innodb.h	\
 			include/handler0alter.h				\
-			handler/i_s.h handler/handler0vars.h
+			handler/i_s.h
 
 EXTRA_LIBRARIES=	libinnobase.a
 noinst_LIBRARIES=	@plugin_innodb_plugin_static_target@
diff --git a/win/Makefile.am b/win/Makefile.am
index b772126402596b510c355e044b84fb97aeb8af18..e5813010740f98dad55314a124356abb9bd591cf 100644
--- a/win/Makefile.am
+++ b/win/Makefile.am
@@ -16,8 +16,7 @@
 ## Process this file with automake to create Makefile.in
 EXTRA_DIST = build-vs71.bat build-vs8.bat build-vs8_x64.bat build-vs9.bat \
              build-vs9_x64.bat configure.js README mysql_manifest.cmake \
-             create_manifest.js
+             create_manifest.js create_def_file.js
 
 # Don't update the files from bitkeeper
 %::SCCS/s.%
-             mysql_manifest.cmake create_manifest.js create_def_file.js