File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 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
2024set windows-shell := [' cmd' , ' /c' ]
@@ -68,6 +72,7 @@ CFLAGS_only_promp_for_dev := CFLAGS_base + ' ' + CFLAGS_debug + CFLAGS_static +
6872
6973BIN_xy := if os () == ' windows' {' xy.exe' } else {' ./xy' }
7074BIN_fw := if os () == ' windows' {' fw.exe' } else {' ./fw' }
75+ BIN_rm := if os () == ' windows' {' del' } else {' rm' }
7176#=======================
7277alias b := build
7378alias d := debug
@@ -106,8 +111,8 @@ test-cli:
106111 @ perl ./ test/ cli.pl
107112
108113clean :
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*
You can’t perform that action at this time.
0 commit comments