diff --git a/.cvsignore b/.cvsignore
index 0ce1af8d3890a6f2653ac5dd2b7953ac07f5863c..0cc425cc33cfb4282f0895aad571e2fd304f9eac 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -2,3 +2,5 @@ config.h
 config.mak
 *ffmpeg
 ffserver
+Makefile.*
+.depend
diff --git a/Makefile b/Makefile
index 3f2532ab96044abb48da1ccdde897f3c54b6473c..6eae5bf555908e731964f83e80a164578570aa7b 100644
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@ depend:
 clean: 
 	$(MAKE) -C libavcodec clean
 	$(MAKE) -C libav clean
-	rm -f *.o *~ gmon.out TAGS $(PROG) 
+	rm -f *.o *~ .depend gmon.out TAGS $(PROG) 
 
 distclean: clean
 	$(MAKE) -C libavcodec distclean
diff --git a/libav/.cvsignore b/libav/.cvsignore
new file mode 100644
index 0000000000000000000000000000000000000000..0cc425cc33cfb4282f0895aad571e2fd304f9eac
--- /dev/null
+++ b/libav/.cvsignore
@@ -0,0 +1,6 @@
+config.h
+config.mak
+*ffmpeg
+ffserver
+Makefile.*
+.depend
diff --git a/libavcodec/.cvsignore b/libavcodec/.cvsignore
new file mode 100644
index 0000000000000000000000000000000000000000..4d6d46d6392d483746415ec6c5b011647fd401a2
--- /dev/null
+++ b/libavcodec/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.*
+.depend
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index e5a8cfb3adeaf6ebb71074d9d96f7f382b38360a..9506300a083c2dfb06ba1f578e976b49f2edc2d1 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -91,7 +91,7 @@ depend:
 	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
 
 clean: 
-	rm -f *.o *~ $(LIB) $(SLIB) *.so i386/*.o i386/*~ \
+	rm -f *.o *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \
 	   armv4l/*.o armv4l/*~ \
 	   mlib/*.o mlib/*~ \
 	   alpha/*.o alpha/*~ \