diff --git a/src/Makefile.am b/src/Makefile.am
index 86db34f4749d1433574472985fd4cfa03e2795ea..22baa16f6b0c5fceacaa8c4d22a1209c67e041b6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,7 @@
 AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DSYSCONFDIR=\"$(sysconfdir)\"
 
+CLEANFILES = revision.h
+
 if BUILDING_FROM_GIT
 SOMETHING = "REVISION \"$(shell git describe --tags 2>/dev/null)\""
 else