diff Makefile @ 35902:681e44b3b0ec

build: Run tests, tools, etc. clean targets as dependencies of clean. The clean target should remove everything that make created, so don't run these targets as dependencies of distclean.
author diego
date Sun, 17 Mar 2013 22:21:01 +0000
parents 243a307dccbd
children 9914889b8b68
line wrap: on
line diff
--- a/Makefile	Sun Mar 17 22:20:59 2013 +0000
+++ b/Makefile	Sun Mar 17 22:21:01 2013 +0000
@@ -943,7 +943,7 @@
 	rm -f $(MANDIR)/man1/mplayer.1 $(MANDIR)/man1/mencoder.1
 	rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man)))
 
-clean:
+clean: testsclean toolsclean driversclean dhahelperclean
 	-$(MAKE) -C ffmpeg $@
 	-rm -rf tests/res
 	-rm -f $(call ADD_ALL_DIRS,/*.o /*.d /*.a /*.ho /*~)
@@ -953,7 +953,7 @@
 	-rm -f codecs.conf.h help_mp.h version.h
 	-rm -rf DOCS/tech/doxygen DOCS/HTML
 
-distclean: clean testsclean toolsclean driversclean dhahelperclean
+distclean: clean
 	-$(MAKE) -C ffmpeg $@
 	-rm -f DOCS/xml/html-chunk.xsl DOCS/xml/html-single.xsl
 	-rm -f $(foreach lang,$(DOC_LANG_ALL),DOCS/xml/$(lang)/main.xml)