Skip to content

Commit 82efdf9

Browse files
committed
just clean
1 parent acc8f8b commit 82efdf9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

justfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
# just (build)
1313
# just debug
1414
# just test
15+
# just clean
1516
#
1617
# just STATIC=1 # 静态链接
1718
# just DEBUG=1 # 编译出 debug 版
19+
#
20+
# 该文件主要用于在原生Windows上执行项目的基本任务,而不借助于
21+
# GNU make 以及相应的 MSYS2、Cygwin 环境
1822
# --------------------------------------------------------------
1923

2024
set windows-shell := ['cmd', '/c']
@@ -68,6 +72,7 @@ CFLAGS_only_promp_for_dev := CFLAGS_base + ' ' + CFLAGS_debug + CFLAGS_static +
6872

6973
BIN_xy := if os() == 'windows' {'xy.exe'} else {'./xy'}
7074
BIN_fw := if os() == 'windows' {'fw.exe'} else {'./fw'}
75+
BIN_rm := if os() == 'windows' {'del'} else {'rm'}
7176
#=======================
7277
alias b := build
7378
alias d := debug
@@ -106,8 +111,8 @@ test-cli:
106111
@perl ./test/cli.pl
107112

108113
clean:
109-
-@rm *.exe 2>/dev/null
110-
-@rm xy 2>/dev/null
111-
-@rm fw 2>/dev/null
112-
-@rm chsrc 2>/dev/null
113-
-@rm README.md.bak* 2>/dev/null
114+
-@{{BIN_rm}} *.exe
115+
-@{{BIN_rm}} xy
116+
-@{{BIN_rm}} fw
117+
-@{{BIN_rm}} chsrc
118+
-@{{BIN_rm}} README.md.bak*

0 commit comments

Comments
 (0)