Debian Codegraph @

lib/mlrisc-lib/MLRISC/makeall-new.sml

raw
1 (*
2 * Recompile everything in this directory
3 *)
4 (* CM.autoload "$/full-cm.cm"; *)
5
6 (* Register the nowhere tool *)
7 CM.make "$smlnj/cm/tools.cm";
8 val _ = Tools.registerStdShellCmdTool
9 { tool = "Nowhere",
10 class = "nowhere",
11 suffixes = ["peep"],
12 cmdStdPath = "nowhere",
13 template = NONE,
14 extensionStyle =
15 Tools.REPLACE (["nowhere"], [("sml", SOME "sml", fn too => too)]),
16 dflopts = [] };
17
18 val current = ref "";
19 fun make f = (print("[Compiling "^f^"]\n"); current := f; CM.recomp("cm/"^f));
20 fun again _ = make(!current);
21 fun makeall [] = true
22 | makeall(f::fs) = make f andalso makeall fs
23 ;
24
25 fun set f = #set(CM.Anchor.anchor f) (SOME "cm");
26 val _ = app set files;
27 val _ = makeall files;