diff --git a/examples/compile-c/Makefile.am b/examples/compile-c/Makefile.am
index 51a996a4d96317a20d56d3a2da42b47dd692db35..d8a1be7cfdf30285f6fa9c8c41d333c8e66e293a 100644
--- a/examples/compile-c/Makefile.am
+++ b/examples/compile-c/Makefile.am
@@ -19,6 +19,8 @@ include ../../common-rules.mk
 
 EXTRA_DIST = main.c utils.c $(sources)
 
+CLEANFILES += compile program
+
 sources = compile.ml
 
 noinst_SCRIPTS = compile