Skip to content

Commit

Permalink
clean bat
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Jun 23, 2024
1 parent 13784e2 commit c9c13cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,6 @@ ifeq ($(OS), Windows_NT) # Windows 系统
@call del_win.bat
else # 类 Unix 系统(Linux, macOS, 等)
chmod +x del_linux.sh
./del_linux.sh
sh ./del_linux.sh
endif

7 changes: 1 addition & 6 deletions del_linux.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/bin/bash

# 设置目标目录
target_directory="./" # 替换为你的目标目录路径

# 删除 .o 和 .d 文件
target_directory="./"
find "$target_directory" -type f \( -name "*.o" -o -name "*.d" \) -delete

echo "Deletion complete."

0 comments on commit c9c13cb

Please sign in to comment.