iMake is a platform independent make processor written entirely
in JavaTM.
Using iMake developers can easily create and maintain libraries, executables
and object files from source files. iMake lets developers automate site and
program maintenance using make files to describe how files depend on
each other and how to update files when the files it depends on change.
iMake is particularly useful for projects that have many files, since only
those files that have changed are regenerated. iMake does this by looking at
the date and time that each dependant file before performing any operations.
Syntax
mk
{ -a{ll} }
{ -d }
{ -h{elp} }
{ -nologo }
{ -q }
{ -v{erbose} }
{ -i path }
{ -d identifier{=definition} }
{ -u identifier }
{ { -f{ile} makefile } }
{ target }
Parameters
-all
|
to make all the targets
|
-d
|
build if the time stamps are equal
|
-help
|
display this help message.
|
-nologo
|
suppresses display of copyright message.
|
-q
|
check files only.
|
-verbose
|
displays information useful when debugging iMake make files.
|
-i path
|
append the specified path to the search path for include files.
|
-d identifier=definition
|
associate the specified definition with the given identifier.
This option can not be used to define macros. Macros must be defined using the !define directive.
|
-u identifier
|
remove the specified identifier.
|
-file
|
to specify the make file
|
makefile
|
the name of the file to make
makefile if none specified
|
target
|
the target to make
all if none specified
|
Returns
returncode
|
0 if no errors occurred.
-1 if an error occurred.
|
Example
mk
mk -a
mk -f doc.mak
makefile
# generate html pages from templates
dep = template.inc
.ctf.html:
pp $*.ctf $*.html
all: index.html exit.html links.html
index.html: index.ctf
exit.html: exit.ctf $(dep)
links.html: links.ctf $(dep)
|