summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-25 15:13:21 -0500
committerOri Bernstein <ori@eigenstate.org>2016-01-25 15:13:21 -0500
commit74b3aaed1a5a978a4d64ae4bdce9b0cdcf82860c (patch)
tree62531753c75669e8764f96bbbc3a2c74af9720c8 /mbld
parent7d63bf43adec9c28434c4bf44cf22f75fbfa1587 (diff)
downloadmc-74b3aaed1a5a978a4d64ae4bdce9b0cdcf82860c.tar.gz
Remove test outputs when cleaning.
Fixes #59
Diffstat (limited to 'mbld')
-rw-r--r--mbld/clean.myr7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbld/clean.myr b/mbld/clean.myr
index 51653d6..68e4677 100644
--- a/mbld/clean.myr
+++ b/mbld/clean.myr
@@ -65,7 +65,7 @@ const cleanmyr = {b, targ
const cleanup = {b, targ, leaves
var mchammer_files /* cant touch this */
- var keys, dg
+ var keys, dg, test
/*
we want to automatically add 'clean' sources since otherwise,
@@ -83,6 +83,11 @@ const cleanup = {b, targ, leaves
if !std.htgetv(mchammer_files, k, false) && std.remove(k)
std.put("\tclean {}\n", k)
;;
+ test = std.pathcat("test", k)
+ if std.remove(test)
+ std.put("\tclean {}\n", test)
+ ;;
+ std.slfree(test)
;;
}