diff --git a/examples/Makefile.am b/examples/Makefile.am
index 5a4f0d2e6b6cd0626e3aea5119bf5b7abc793cfe..1a97416a563f225f0bf0080ef0f4214d795a7d3e 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -106,13 +106,10 @@ iconoce.$(OBJEXT)   \
 test_dace.$(OBJEXT): $(mo_event_manager_mod)
 
 clean-local:
-	rm -rf *.dSYM
+	rm -f *.dat
 
 MOSTLYCLEANFILES = $(mo_event_manager_mod) $(mo_exception_mod) $(mo_kind_mod)
 
-mostlyclean-local:
-	rm -f *.i
-
 # overrides to make regular compilations also use libtool
 COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 	$(LIBTOOLFLAGS) --mode=compile $(CC) -static $(DEFS) \
diff --git a/python/Makefile.am b/python/Makefile.am
index b0c140a92e1dd5386d715b049c97922aefd20095..00dda2aca2c67cd4cdf4f11fcf7acde9db1f84bd 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -19,6 +19,8 @@ $(install_tmpdir)/_mtime.py: mtime/_mtime.py
 	  $(SED) -n '/^# SET-SOFILE-END-TAG$$/,$$p' $<; \
 	}>$@
 
+MOSTLYCLEANFILES = $(nodist_pkgpython_PYTHON)
+
 # overrides to make regular compilations also use libtool
 COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 	$(LIBTOOLFLAGS) --mode=compile $(CC) -static $(DEFS) \
diff --git a/src/Makefile.am b/src/Makefile.am
index 4ce703ffa86046eb9af04962b09dc97df259286f..61468acebd3332ff47e5b222d1408d3475903bf3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -142,9 +142,6 @@ endif ENABLE_FORTRAN_HL
 
 MOSTLYCLEANFILES = $(all_mods)
 
-mostlyclean-local:
-	rm -f *.i
-
 EXTRA_DIST = mtime_iso8601.rl
 
 # overrides to make regular compilations also use libtool
diff --git a/test/Makefile.am b/test/Makefile.am
index f84ee97990034c667287e97ad8eb2f3a741f1b2c..ac34ca6b37ea7eeba45a0da22e0c840521fc0339 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -28,9 +28,6 @@ libmtime_check_la_SOURCES = \
     mtime_timedelta_test.h
 endif ENABLE_CHECK
 
-clean-local:
-	rm -rf *.dSYM
-
 # overrides to make regular compilations also use libtool
 COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 	$(LIBTOOLFLAGS) --mode=compile $(CC) -static $(DEFS) \