changeset 35594:bff329dcd7d1

Let 'make clean' remove all files that 'make' can regenerate. Leave only stuff generated by configure to 'make distclean'. Patch suggested by reimar, applied with just one change: DOCS/xml/html-chunk.xsl and DOCS/xml/html-single.xsl stay with distclean, because they are generated by configure.
author ib
date Sat, 15 Dec 2012 23:08:43 +0000
parents 7f77500c982b
children da22212d9d7b
files Makefile
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Dec 15 20:15:35 2012 +0000
+++ b/Makefile	Sat Dec 15 23:08:43 2012 +0000
@@ -944,17 +944,17 @@
 clean:
 	-$(MAKE) -C ffmpeg $@
 	-rm -rf tests/res
-	-rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~)
+	-rm -f $(call ADD_ALL_DIRS,/*.o /*.d /*.a /*.ho /*~)
 	-rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
+	-rm -f $(VIDIX_PCI_FILES)
+	-rm -f $(call ADD_ALL_EXESUFS,codec-cfg cpuinfo)
+	-rm -f codecs.conf.h help_mp.h version.h
 	-rm -rf DOCS/tech/doxygen DOCS/HTML
 
 distclean: clean testsclean toolsclean driversclean dhahelperclean
 	-$(MAKE) -C ffmpeg $@
 	-rm -f DOCS/xml/html-chunk.xsl DOCS/xml/html-single.xsl
-	-rm -f $(call ADD_ALL_DIRS,/*.d)
-	-rm -f config.* codecs.conf.h help_mp.h version.h TAGS tags
-	-rm -f $(VIDIX_PCI_FILES)
-	-rm -f $(call ADD_ALL_EXESUFS,codec-cfg cpuinfo)
+	-rm -f config.* TAGS tags
 
 doxygen:
 	doxygen DOCS/tech/Doxyfile