Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 1.49 KB

cumulative-dependencies.md

File metadata and controls

59 lines (48 loc) · 1.49 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Cumulative Dependencies | Microsoft Docs
11/04/2016
cpp-tools
article
C++
dependencies, cumulative
cumulative dependencies in NMAKE
dependencies
fa6dd777-80b8-437d-87a7-aec0ed818a49
11
corob-msft
corob
ghogen

Cumulative Dependencies

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

For example, this set of rules,

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

is evaluated as this:

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. NMAKE attempts to use an inference rule for such targets.

For example, this set of rules,

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

is evaluated as this:

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

See Also

Targets