Share via


Cumulative Dependencies

Dependencies are cumulative in a description block if a target is repeated.

This...

...is evaluated as this

bounce.exe : jump.obj
bounce.exe : up.obj
   echo Building 
bounce.exe...
bounce.exe : jump.obj 
up.obj
   echo Building 
bounce.exe...

Multiple targets in multiple dependency lines in a single description block are evaluated as if each were specified in a separate description block, but targets that are not in the last dependency line do not use the commands block.

This...

...is evaluated as this

bounce.exe leap.exe : 
jump.obj
bounce.exe climb.exe : 
up.obj
   echo Building...
bounce.exe : jump.obj 
up.obj
   echo Building 
bounce.exe...
climb.exe : up.obj
   echo Building 
climb.exe...
leap.exe : jump.obj
# invokes an inference rule

See Also

Concepts

Targets