diff --git a/extra/Makefile.am b/extra/Makefile.am
index 91ec8318f087a09eff60df026990de7bd962378a..457fddce673a2e0d5a21cc394c5d94656c713cbc 100644
--- a/extra/Makefile.am
+++ b/extra/Makefile.am
@@ -26,7 +26,7 @@ CLEANFILES =		$(BUILT_SOURCES)
 DIST_SUBDIRS=           yassl
 
 # This will build mysqld_error.h and sql_state.h
-$(top_builddir)/include/mysqld_error.h: comp_err$(EXEEXT)
+$(top_builddir)/include/mysqld_error.h: comp_err
 	$(top_builddir)/extra/comp_err \
 	--charset=$(top_srcdir)/sql/share/charsets \
 	--out-dir=$(top_builddir)/sql/share/ \