Subject: | Strange subdir behavior in Windows platform |
ExtUtils::MakeMaker 5.45 (Revision: 1.222)
Perl Version: 5.6.1 MSWin32 (ActivePerl Build 631)
In Windows platforms, the generated makefile (perl Makefile.PL) will contain an incorrect target when there are some subdirectories. Just do the following (don't even touch a line of code!):
h2xs -A -X -n Anything
(...)
h2xs -A -X -n Anything::ThatOther
(...)
cd Anything
perl Makefile.PL
(...)
make
(...)
ERROR: (the error message depends on the distribution and the make utitlity used).
If you inspect the generated Makefile you will find (around line 380) a strange target like this:
subdirs ::
@[
<Tab> cd ThatOther
<Tab> $(MAKE) all $(PASSTHRU)
<Tab> cd ..
]
As far as I know, this is not a valid Make sytax. The equivalent Makefile in a Linux box reads:
subdirs ::
<Tab> @cd ThatOther && $(MAKE) all $(PASTHRU)