diff --git a/common.mak b/common.mak
index d004de4e0166ddda8642dba5dfa4af7693b2b033..83f2dbb1ca2788bba58ddefcebe3c478af44cb12 100644
--- a/common.mak
+++ b/common.mak
@@ -98,7 +98,7 @@ $(SUBDIR)x86/%.d: $(SUBDIR)x86/%.asm
 	$(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$(@:%.d=%.o) $$< > $$@
 
 clean::
-	rm -f $(EXAMPLES) $(TESTPROGS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
+	rm -f $(EXAMPLES) $(addprefix $(SUBDIR),*-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
 	    $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
 
 distclean:: clean
diff --git a/libavutil/Makefile b/libavutil/Makefile
index 51c50f499216a34f6a5700b902dc3e6e4735eb23..8428446b02a4b8a3fb962267ad65e35a51d2d632 100644
--- a/libavutil/Makefile
+++ b/libavutil/Makefile
@@ -48,5 +48,3 @@ DIRS = arm bfin sh4 x86
 include $(SUBDIR)../subdir.mak
 
 $(SUBDIR)lzo-test$(EXESUF): EXTRALIBS += -llzo2
-
-CLEANFILES = lzo-test$(EXESUF)