]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
On ./make.sh clean, we remove all targets.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Nov 2008 23:52:49 +0000 (23:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Nov 2008 23:52:49 +0000 (23:52 +0000)
.config-default
tools/make-constants
tools/make-interactive

index fdd4f5c9c0954d1ff2dca9da688165a68c31faa8..cd65da8289aae1c59bf49ef0b19a9e7c9676b4b2 100644 (file)
@@ -42,7 +42,7 @@
 ###############################################################################
 # Target Architecture                                                         #
 ###############################################################################
-# TARGET is one out of i686|i586|i486|via-c7|via-c3|geodelx.                  #
+# TARGET is one out of i686|i586|via-c7|via-c3|geodelx.                       #
 # This is the target architecture you specify for the system that is built.   #
 # Default is i686.                                                            #
 ###############################################################################
index b841e575c057a109d1b343a9c1a5e7f08fccf931..570daca991696e8e5e012460ac745cefcf9b9a3d 100644 (file)
@@ -26,6 +26,7 @@
 
 # Default target
 TARGET=i686
+POSSIBLE_TARGETS="i586 i686 via-c3 via-c7 geodelx"
 
 # Configuration rootdir
 CONFIG_ROOT=/etc/$SNAME
index f5d039051ac34fe57ab470565dba56aa3fed5da4..ac6c7de9755de227ca5c10d3c9c4b68342ca882c 100644 (file)
@@ -89,22 +89,21 @@ distcc|distccd)
        ;;
 
 clean)
-       echo -ne "Cleaning ${BOLD}$MACHINE${NORMAL} buildtree"
-
        for i in $(mount | grep $BASEDIR | cut -d " " -f 1); do
                umount $i
        done
 
        stdumount
 
-       rm -rf $BASEDIR/build_${MACHINE}
-       rm -rf $BASEDIR/log_${MACHINE}
-       rm -rf $BASEDIR/packages
-       rm -f  $FAILED $RUNNING 2>/dev/null
-       
-       if [ -h $TOOLS_DIR ]; then
-               rm -f $TOOLS_DIR
-       fi
+       for i in $POSSIBLE_TARGETS; do
+               echo -ne "Cleaning ${BOLD}$i${NORMAL} buildtree"
+               rm -rf $BASEDIR/build_$i
+               rm -rf $BASEDIR/log_$i
+               rm -rf $BASEDIR/packages_$i
+               beautify message DONE
+       done
+       echo -ne "Removing ${BOLD}general files${NORMAL}"
+       rm -f $FAILED $RUNNING 2>/dev/null
        beautify message DONE
        ;;