changeset 19292:20938447bb55

'make clean' now recurses through subdirectories as expected, 'make dirclean' can be used to clean just the toplevel directory.
author diego
date Thu, 03 Aug 2006 17:31:30 +0000
parents 81d2524ae843
children 67a441044abe
files Makefile
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Aug 03 17:07:31 2006 +0000
+++ b/Makefile	Thu Aug 03 17:31:30 2006 +0000
@@ -480,9 +480,12 @@
 endif
 	@echo "Uninstall completed"
 
-clean:
+dirclean:
 	-rm -f *.o *.a *~
 
+clean: dirclean
+	@for a in $(PARTS); do $(MAKE) -C $$a clean; done
+
 distclean: clean doxygen_clean
 	-rm -f *~ $(PRG) $(PRG_MENCODER) codec-cfg codecs2html
 	-rm -f .depend configure.log codecs.conf.h help_mp.h