NMAKE Help (nmake.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Targets in Multiple Dependencies
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     To use a target in more than one description block, specify two
     consecutive colons (::) between targets and dependents in each
     dependency that contains the target, as follows:
 
          target :: [some dependents]
            [commands block]
 
          target :: [other dependents]
            [commands block]
 
     A target can appear in only one dependency when specified with a
     single colon (:).
     See: Dependencies
          Targets
          Accumulating Targets in Dependencies
 
     One use for this feature is for building a complex target that
     contains components created with different commands.
 
     Example
 
          target.lib :: one.asm two.asm three.asm
            ML one.asm two.asm three.asm
            LIB target -+one.obj -+two.obj -+three.obj;
          target.lib :: four.c five.c
            CL /c four.c five.c
            LIB target -+four.obj -+five.obj;
 
     This makefile updates a library. If any .ASM file has changed more
     recently than the library, NMAKE assembles the sources and updates
     the library. If any .C file has changed, NMAKE compiles the C
     files and updates the library.
                                    -♦-