Skip to content

Commit 8c9b3ab

Browse files
committed
FEAT: cleaning project files directly from Rebol instead of using makefile
1 parent 7ce3699 commit 8c9b3ab

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

make/make.r3

+13-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ attempt [do %make-settings.r]
1111
cmd-menu: {^/^[[1;33;49mPlease choose version to build:^[[0m^/}
1212

1313
cmd-actions: [
14-
"c" [val: none eval-cmd [{make TOOLS=} TOOLS { clean}]]
14+
"c" [
15+
val: none
16+
;eval-cmd [{make TOOLS=} TOOLS { clean}]
17+
clean-project
18+
]
1519
"q" [quit]
1620
"" [val: none]
1721
]
@@ -76,6 +80,14 @@ foreach [name data] settings [
7680
append cmd-menu {^-^[[1;32;49mc^[[0m: Clean^/}
7781
append cmd-menu {^-^[[1;32;49mq^[[0m: Quit^/}
7882

83+
clean-project: func[/local dir][
84+
dir: %objs/
85+
foreach file read dir [
86+
print ["Deleting:" dir/:file]
87+
delete dir/:file
88+
]
89+
]
90+
7991
eval-cmd: func[cmd [string! block!] /local err][
8092
if block? cmd [cmd: rejoin cmd]
8193
prin "^[[1;33;49m"

0 commit comments

Comments
 (0)