Some examples of use for Speedy Make
Speedy Make is mainly intended to build software, but is not limited to this use. The engine that parses the XML document used for makefile is able to performs various tasks.
A backup program
The purpose of a backup program is to copy a defined list of files into a
defined location. Only newer versions of the files have to be copied.
The list of files to copy is stored into a tag:
<files> ...some filenames with paths... </file>
The destination is another tag:
<target> ... a directory ... </target>
The copy command is stored into another tag, and the top action also:
<copy action="run"> cp *files $target </copy> <main> copy </main>
Under Windows the standard command is:
copy /B /Y *files $target
but the copy command may be replaced by a more powerful freeware tool. See at: Unix Tools, for example.
SM may be used with any tool that requires a list of files in input:
- Comparing a list of files.
fc c:\dirx\*files c:\diry\*.*
- Changing the extension of a list of files.
Since the makefile is an XML document, makefiles may be generated by other tools that allow to select a list of files, put the list into a tag, and apply predefined rules on the list. The smake parser is then called with the document as parameter.