Module nake

Documentation for the nake module.

This module imports and exports all of nakelib, which contains the procs and macros you can use to define and run tasks in your nakefiles.

On top of these procs and macros, this module contains special code with an isMainModule static compilation branch. If the nake module is being run as a stand alone executable, it will check for an existing nakefile.nim file and attempt to run or compile it. On the other hand if the nake module is being imported, it will register a quit procedure to turn the the program into a runnable nakefile.

See the docstring of the runTask() proc for an example of a simple nakefile