diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 5f2aac2e490d715203879d71b49e3c9b696b82db..9586361a00887ea4f63c9753414f3bc6e67efa08 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -442,8 +442,8 @@ clean::
 	   liba52/*.o liba52/*~ \
 	   amr_float/*.o \
 	   apiexample $(TESTS)
-	$(MAKE) -C amr clean
-	$(MAKE) -C amrwb_float -f makefile.gcc clean
+	-$(MAKE) -C amr clean
+	-$(MAKE) -C amrwb_float -f makefile.gcc clean
 
 # api example program
 apiexample: apiexample.c $(LIB)