Author: jhuntwork
Date: 2005-07-24 08:57:00 -0600 (Sun, 24 Jul 2005)
New Revision: 398

Modified:
   x86/trunk/Makefile
Log:
Updated clean targets

Modified: x86/trunk/Makefile
===================================================================
--- x86/trunk/Makefile  2005-07-24 05:55:21 UTC (rev 397)
+++ x86/trunk/Makefile  2005-07-24 14:57:00 UTC (rev 398)
@@ -408,17 +408,21 @@
        @-rm {prepiso,lfsuser,unamemod,prep-chroot,lfs-base,extend-lfs}
        @-rm $(PKG)/binutils/{,re-}adjust-toolchain
        @-for i in `ls $(PKG)` ; do $(MAKE) -C $(PKG)/$$i clean ; done
-       @-var=`find packages -name ".pass2"` && for i in $$var ; do rm -rf $$i 
; done
+       @find $(PKG) -name "pass*" -exec rm -rf \{} \;
+       @find $(PKG) -name "stage*" -exec rm -rf \{} \;
+       @find $(PKG) -name "*.log" -exec rm -rf \{} \;
+       @find $(PKG)/binutils/* -xtype d -exec rm -rf \{} \;
+       @rm -f $(PKG)/wget/prebuild
+       @rm -f $(PKG)/binutils/{a.out,dummy.c,.spectest}
 
 scrub: clean
        @-for i in bin boot dev etc home iso lib media mnt opt proc root sbin 
srv sys tmp \
         usr var ; do rm -rf $(MP)/$$i ; done
-       @-rm $(MP)/{etc,root}.tar.bz2
        @-rm lfslivecd-$(VERSION).iso
 
 clean_sources:
        @-rm $(SRC) ; rm -rf $(LFSSRC) $(MP)$(LFSSRC)
-       @-for i in `ls $(PKG)` ; do rm -rf $(PKG)/$$i/{*.gz,*.bz2,*.zip,*.tgz} 
; done
+       @find packages/* -xtype l -exec rm -f \{} \;
 
 unmount:
        @-umount $(MP)/dev/shm

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to