Skip to content

Commit

Permalink
.make#clean: also clean C++ projects
Browse files Browse the repository at this point in the history
  • Loading branch information
XPhyro committed Aug 21, 2024
1 parent 4fe2c66 commit 3925965
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .make
Original file line number Diff line number Diff line change
Expand Up @@ -605,13 +605,19 @@ clean() {
"CLEAN" \
"====="

(
cd cpp/projects || exit 1
find '.' -mindepth 1 -maxdepth 1 -type d -printf "%P\n" \
| while IFS= read -r project; do
(cd "$project" && make clean)
done
)

(
cd rs || exit 1
find '.' -mindepth 1 -maxdepth 1 -type d -not -path "*/.archived/*" -not -name ".archived" -printf "%P\n" \
| while IFS= read -r project; do
cd "$project" || continue
cargo clean
cd ..
(cd "$project" && cargo clean)
done
)

Expand Down

0 comments on commit 3925965

Please sign in to comment.