[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Make "make clean" command to delete ALL object files.



Please commit this patch.
Thank you!

Commit message:

"make clean" command doesn't delete object files inside multi target
build directories (.configure_$(CPU)). Fix it.
Contributed by David Galvez
Index: RULES
===================================================================
RCS file: /mint/freemint/RULES,v
retrieving revision 1.6
diff -u -8 -r1.6 RULES
--- RULES	22 Jan 2008 10:15:38 -0000	1.6
+++ RULES	16 Dec 2015 16:44:09 -0000
@@ -8,16 +8,17 @@
 include $(srcdir)/MISCFILES
 
 all: all-recursive all-here
 
 clean: clean-recursive
 	rm -f *.o lib*.a *.tmp
 	rm -f core report nohup.out errlog
 	rm -f foobar foo bar baz junk schrott muell
+	rm -rf $(compile_all_dirs)/*.o $(compile_all_dirs)/lib*.a
 
 bakclean: bakclean-recursive
 	rm -f *~ *# *.BAK *.bak
 	rm -f *.orig *.rej
 
 distclean: distclean-recursive
 	rm -f *.o lib*.a *.tmp *~ *# *.orig *.rej *.BAK *.bak
 	rm -f core report nohup.out errlog