[PATCH] Add some extra cleaning to "clean" and "mrproper" targets.

Robert P. J. Day rpjday at crashcourse.ca
Fri Jul 18 10:43:47 UTC 2008


Add more files and directories to be cleaned: _install/, 0_lib/,
busybox.links and busybox_old.

Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>

---

  the first three objects to be cleaned were added to the basic "make
clean" target while, since denys seemed to think busybox_old had some
extra significance, that file was added to "make mrproper".

  as it stands, the "proper" location for certain files or directories
to be cleaned is a bit unclear, so let's just get them in there for
now and they can always be adjusted later.

Index: svn/Makefile
===================================================================
--- svn/Makefile	(revision 22876)
+++ svn/Makefile	(working copy)
@@ -932,8 +932,9 @@
 # make distclean Remove editor backup files, patch leftover files and the like

 # Directories & files removed with 'make clean'
-CLEAN_DIRS  += $(MODVERDIR)
-CLEAN_FILES +=	busybox busybox_unstripped* System.map .kernelrelease \
+CLEAN_DIRS  += $(MODVERDIR) _install 0_lib
+CLEAN_FILES +=	busybox busybox_unstripped* busybox.links \
+                System.map .kernelrelease \
                 .tmp_kallsyms* .tmp_version .tmp_busybox* .tmp_System.map

 # Directories & files removed with 'make mrproper'
@@ -944,7 +945,8 @@
 		  include/usage_compressed.h \
 		  include/applet_tables.h \
 		  applets/usage \
-		  .kernelrelease Module.symvers tags TAGS cscope*
+		  .kernelrelease Module.symvers tags TAGS cscope* \
+		  busybox_old

 # clean - Delete most, but leave enough to build external modules
 #


========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================



More information about the busybox mailing list