ref: 74b3aaed1a5a978a4d64ae4bdce9b0cdcf82860c
parent: 7d63bf43adec9c28434c4bf44cf22f75fbfa1587
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jan 25 10:13:21 EST 2016
Remove test outputs when cleaning. Fixes #59
--- a/mbld/clean.myr
+++ b/mbld/clean.myr
@@ -65,7 +65,7 @@
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 @@
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)
;;
}