ML-BUILD(1)
π ML-BUILD(1) β the build tool era β¨
okay so bestie, welcome to ml-build(1) β a command-line build tool for SML/NJ programs, and honestly? she's iconic. π
β¨ NAME β¨
ml-build β command-line build tool for SML/NJ programs. that's the whole vibe, no cap. π¦
πΈ SYNOPSIS πΈ
ml-build [OPTIONS] group.cm [main [heap-image]]
look at her. three optional little guys trailing after the options and the .cm file. main, then heap-image. the way that she just takes them. π
π DESCRIPTION π
ML-Build is a command-line tool for building applications from SML source files, and she does it using the Compilation Manager and the SML/NJ compiler. literally her whole job. highkey ate. π₯
π OPTIONS π
okay here's the part where she gets β¨customizableβ¨ β every single flag, right here, nothing skipped:
-Cctl=valueβ set the control ctl to value. give her a control name, give her a value, done. π«Ά-Dname=valueβ define the CM variable name to have the given value. you decide what it equals, she respects it.-D'nameβ see that little single quote? π define the CM variable name to have the value1. that's it, that's the whole thing. the'is doing the heavy lifting and honestly same.-Unameβ remove any definition of the CM variable name. un-defining. the breakup option. π-S setup.cmβ load and execute the code specified by the CM filesetup.cmprior to the main build process. why? because this option lets you customize the compiler via side-effect. it's giving setup ritual before the main event. π§
ngl the -S one is the sneaky main character β she runs before everything else, so whatever she does, she does it first. side effects and all. π
β EXAMPLES β
these are the exact lines, bestie, copy them carefully:
ml-build foo.cm
builds the program foo assuming a main function named Test.main. (yes, she just assumes that. confident queen. π
)
ml-build foo.cm Main.main
builds the program foo with main function named Main.main. now you named her main function. slay. β¨
ml-build sources.cm Main.main prog
builds the program prog with main function named Main.main. three-argument full glam. π
π¦ AUTHOR π¦
ML-Build was written by Matthias Blume. thank you king, we love a builder. π«Ά
πΈ SEE-ALSO πΈ
go read her friends, fr fr:
π COPYING π
Copyright Β© 2020 The Fellowship of SML/NJ
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
like bestie, zero warranty. none. not even the implied ones. it's free software with free-software energy. π
and that's the whole page, pookie. π this beauty comes to you from SML/NJ, dated 2025-11-04, and it's ML-BUILD(1) all the way down. mwah. ππ
π¦ where this page comes from
- arch rolling: smlnj 110.99.9-1 Β· SMLNJ
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms