summaryrefslogtreecommitdiff
path: root/mbld/clean.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-28 17:49:30 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-28 17:49:30 -0800
commit5f46919fc6a471d9a75bb25fae64aecefc9ec864 (patch)
tree4f3e1c8c95b085551c4cfc8147c9d11724165845 /mbld/clean.myr
parente11b9bf807b4579823305419db7c7682e4f7a1d5 (diff)
downloadmc-5f46919fc6a471d9a75bb25fae64aecefc9ec864.tar.gz
Add 'cleanfirst' option.
Diffstat (limited to 'mbld/clean.myr')
-rw-r--r--mbld/clean.myr5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbld/clean.myr b/mbld/clean.myr
index dcd1738..0aa6c50 100644
--- a/mbld/clean.myr
+++ b/mbld/clean.myr
@@ -10,6 +10,7 @@ use "util.use"
pkg bld =
const cleanall : (b : build# -> bool)
const clean : (b : build#, targ : byte[:] -> bool)
+ const cleanmyr : (b : build#, mt : myrtarg# -> void)
;;
const cleanall = {b
@@ -56,6 +57,10 @@ const clean = {b, targ
-> true
}
+const cleanmyr = {b, targ
+ cleanup(b, targ, targ.inputs)
+}
+
const cleanup = {b, targ, leaves
var mchammer_files /* cant touch this */
var keys, dg