23 lines
335 B
Bash
Executable File
23 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd rocklibc
|
|
make clean
|
|
cd ..
|
|
|
|
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
|
|
cd ..
|
|
|
|
make clean
|
|
|
|
cd initrd
|
|
rm -rf output
|
|
rm -f bin/*.elf
|
|
cd .. |