M E N U
Content
Introduction
Release Notes
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Referance Manual
Conventions
iMake
Legal
Feedback
|
iMake make can be used to generate pages only when needed.
Syntax
mk
{ -v{erbose} }
{ -a{ll} }
{ { -f{ile} makefile } }
{ target }
Parameters
-verbose
|
display verbose error messages, useful when debugging iMake make files.
|
-all
|
make all targets
|
-file
|
specify 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 occured.
-1 if an error occured.
|
Notes
Make file use the following syntax:
Commands
# comment
variable = value
Macros
$(variable)
Rules
.sourceextension.targetextension:
command ...
Rule Macros
$s
|
dependency file
|
c:\work\prog.c
|
$d
|
dependency drive
|
c:
|
$p
|
dependency path
|
c:\work\
|
$f
|
dependency file name
|
prog.c
|
$b
|
dependency file base
|
prog
|
$e
|
dependency file extension
|
c
|
$@
|
target
|
c:\work\prog.exe
|
$*
|
target base path
|
c:\work\prog
|
$**
|
dependencies
|
|
$?
|
newer dependencies
|
|
$<
|
newer dependencies
|
|
Targets
target: srcfile { depfile }...
Example
mk
mk -a
mk -f doc.mak
Example
# 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)
|