29 lines
377 B
Bash
Executable File
29 lines
377 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# libc
|
|
cd rlibc
|
|
make clean
|
|
cd ..
|
|
|
|
# libgui
|
|
cd rlibgui
|
|
make clean
|
|
cd ..
|
|
|
|
# programs
|
|
cd programs
|
|
find . -type f \( -name "Makefile" -o -name "makefile" \) | while read -r makefile_path; do
|
|
dir_path=$(dirname "$makefile_path")
|
|
(
|
|
cd "$dir_path" || exit
|
|
|
|
make clean
|
|
)
|
|
done
|
|
rm sysroot
|
|
cd ..
|
|
|
|
# kernel
|
|
make clean
|
|
|
|
rm -rf sysroot |