Subject: | win32 nmake: fatal error U1087: cannot have : and :: dependents for same target, when MAKEFILE=> is used |
------ Versions:
ActiveState 628, MakeMaker 5.45
------ Problem:
When Makefile-bin.PL uses MAKEFILE=>'Makefile-bin' option, nmake generates the folloing message:
Makefile-bin(591) : fatal error U1087: cannot have : and :: dependents for same target
------ Makefile-bin.PL content:
use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'test',
'MAKEFILE' => 'Makefile-bin'
)
---- Results of 'nmake -f Makefile-bin'
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
Makefile-bin(591) : fatal error U1087: cannot have : and :: dependents for same target
Stop.
----- More Data
Apparently, forcing makefile to a different name using MAKEFILE option in the Makefile-bin.PL file causes 'processPL' section to be generated. This section uses '::' form of the rule. There is also the 'makefile' section that uses ':' form of the rule (and has some comments on why :: would not work). Having both of these is causing nmake trouble.