The Make tool (class make) can (almost) be seen as a specialized version of the Shell tool. It has no source and one target (the member itself) which is always considered outdated. As with the Shell tool, it is possible to specify target class and parameters using the class and options keyword parameters.
The tool invokes the shell command make on the target. Unless anchored using the path anchor mechanism 3.3, the command will be located using the operating system's path search mechanism (e.g., the $PATH environment variable).
Any parameters other than the class and options specifications must be plain strings and are given as additional command line arguments to make. The target name is always the last command line argument.
Example:
bar-grm : make (class:mlyacc -f bar-grm.mk)
Here, file bar-grm is generated (and kept up-to-date) by invoking the command:
make -f bar-grm.mk bar-grmThe target file is then treated as input for ml-yacc.
Cascading Shell- and Make-tools is easily possible. Here is an example that first uses Make to build bar.pp and then filters the contens of bar.pp through the C preprocessor to arrive at bar.sml:
bar.pp : make (class:shell
options:(target:bar.sml cpp -Dbar=baz %s %t)
-f bar-pp.mk)