changeset 17488:ce1ba8fd57e7

Make clean/distclean behave uniformly in all directories.
author diego
date Fri, 27 Jan 2006 00:06:42 +0000
parents fa17424b4c7b
children 399f91dd4fbe
files Makefile TOOLS/netstream/Makefile drivers/Makefile drivers/radeon/Makefile input/Makefile liba52/Makefile libaf/Makefile libao2/Makefile libdha/Makefile libfaad2/Makefile libmenu/Makefile libmpcodecs/Makefile libmpdemux/Makefile libmpdvdkit2/Makefile libmpeg2/Makefile libvo/Makefile loader/Makefile loader/dmo/Makefile loader/dshow/Makefile mp3lib/Makefile osdep/Makefile postproc/Makefile tremor/Makefile vidix/Makefile vidix/drivers/Makefile
diffstat 25 files changed, 52 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -521,11 +521,11 @@
 	@echo "Uninstall completed"
 
 clean:
-	-rm -f *.o *~ $(OBJS) codecs.conf.h
+	-rm -f *.o *.a *~ codecs.conf.h
 
-distclean: doxygen_clean
-	-rm -f *~ $(PRG) $(PRG_MENCODER) $(PRG_CFG) $(OBJS)
-	-rm -f *.o *.a .depend configure.log codecs.conf.h help_mp.h
+distclean: clean doxygen_clean
+	-rm -f *~ $(PRG) $(PRG_MENCODER) $(PRG_CFG)
+	-rm -f .depend configure.log codecs.conf.h help_mp.h
 	@for a in $(PARTS); do $(MAKE) -C $$a distclean; done
 
 strip:
--- a/TOOLS/netstream/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/TOOLS/netstream/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -52,8 +52,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f test Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend test
 
 dep:    depend
 
--- a/drivers/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/drivers/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -49,10 +49,8 @@
 dep:
 
 clean: 
-	rm -f *.o *~
-ifneq (,$(findstring 2.6, $(VERSION)))
+	rm -f *.o *.a *~
 	rm -f *.ko .mga* mga_vid.mod.c
-endif
 
 distclean: clean
 	rm -f mga_vid_test tdfx_vid_tst
--- a/drivers/radeon/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/drivers/radeon/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -30,7 +30,9 @@
 dep:
 
 clean: 
-	rm -f *.o *~
+	rm -f *.o *.a *~
+
+distclean: clean
 
 install:
 	mkdir -p $(MOD_PATH)
--- a/input/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/input/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -23,8 +23,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/liba52/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/liba52/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -30,8 +30,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f test *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend test
 
 dep:    depend
 
--- a/libaf/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libaf/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -60,8 +60,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/libao2/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libao2/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -37,8 +37,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/libdha/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libdha/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -66,10 +66,10 @@
 	$(CC) test.c -o test $(SHORTNAME)
 
 clean:
-	rm -f *.o *.so *.so.* *~
+	rm -f *.o *.a *~ *.so *.so.*
 
-distclean:
-	rm -f Makefile.bak *.o *.so *.so.* test *~ .depend
+distclean: clean
+	rm -f .depend test
 	rm -f pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h pci.db
 
 dep:    depend
--- a/libfaad2/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libfaad2/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -65,8 +65,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f test *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend test
 
 dep:    depend
 
--- a/libmenu/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libmenu/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -27,8 +27,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/libmpcodecs/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libmpcodecs/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -262,8 +262,8 @@
 	rm -f *.o *.a *~
 	rm -f native/*.o native/*.a native/*~
 
-distclean:
-	rm -f Makefile.bak $(OBJS) $(OBJS2) $(LIBNAME) $(LIBNAME2) *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/libmpdemux/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libmpdemux/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -180,8 +180,8 @@
 clean:
 	rm -f *.o *.a *~ realrtsp/*.o realrtsp/*.a realrtsp/*~
 
-distclean:
-	rm -f test Makefile.bak *.o *.a *~ realrtsp/*.o realrtsp/*.a realrtsp/*~ .depend
+distclean: clean
+	rm -f .depend test
 
 dep:    depend
 
--- a/libmpdvdkit2/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libmpdvdkit2/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -61,9 +61,10 @@
 	$(CC) -o $(LIB).so -shared -rdynamic $(OBJS)
 
 clean:
-	rm -f $(OBJS) $(LIB).a $(LIB).so .depend
+	rm -f *.o *.a *~ *.so
 
 distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/libmpeg2/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libmpeg2/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -45,8 +45,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/libvo/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/libvo/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -63,8 +63,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/loader/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/loader/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -27,7 +27,7 @@
 all: libloader.a
 
 clean:
-	-rm -f *.o libloader.a
+	rm -f *.o *.a *~
 
 distclean: clean
 
--- a/loader/dmo/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/loader/dmo/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -28,8 +28,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend test test.raw
+distclean: clean
+	rm -f .depend test test.raw
 
 dep:    depend
 
--- a/loader/dshow/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/loader/dshow/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -30,8 +30,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend test test.raw
+distclean: clean
+	rm -f .depend test test.raw
 
 dep:    depend
 
--- a/mp3lib/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/mp3lib/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -58,8 +58,8 @@
 clean:
 	rm -f *~ *.o *.a test1 test2
 
-distclean:
-	rm -f *~ *.o *.a Makefile.bak .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/osdep/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/osdep/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -47,8 +47,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/postproc/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/postproc/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -30,8 +30,8 @@
 clean:
 	rm -f *.o *.a *~ *.so cs_test swscale-example
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/tremor/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/tremor/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -26,8 +26,8 @@
 clean:
 	rm -f *.o *.a *~
 
-distclean:
-	rm -f Makefile.bak *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend
 
 dep:    depend
 
--- a/vidix/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/vidix/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -27,8 +27,8 @@
 	rm -f *.o *.a *~
 	$(DO_MAKE)
 
-distclean:
-	rm -f test *.o *.a *~ .depend
+distclean: clean
+	rm -f .depend test
 	$(DO_MAKE)
 
 dep:    depend
--- a/vidix/drivers/Makefile	Thu Jan 26 19:32:07 2006 +0000
+++ b/vidix/drivers/Makefile	Fri Jan 27 00:06:42 2006 +0000
@@ -152,8 +152,8 @@
 clean:
 	rm -f *.o *.so *~
 
-distclean:
-	rm -f Makefile.bak *.o *.so test *~ .depend
+distclean: clean
+	rm -f .depend test
 
 dep:    depend