develooper Front page | perl.perl5.porters | Postings from September 2013 doesn't rebuild host module makefiles for a cross build

Thread Next
bulk 88
September 11, 2013 02:51
Subject: doesn't rebuild host module makefiles for a cross build
Message ID:
I am having a problem with my WinCE Perl port's build process, after building 
the Desktop Perl with 
(master Desktop makefile). The WinCE master makefile won't build any modules. 
For example, this the extension building console output for WinCE build 
Making all in ext/mro
 nmake -nologo all PERL_CORE=1
        Making parent (all)
Making all in cpan/parent
 nmake -nologo all PERL_CORE=1
        Making perlfaq (all)
Making all in cpan/perlfaq
 nmake -nologo all PERL_CORE=1
        Making podlators (all)
Making all in cpan/podlators
 nmake -nologo all PERL_CORE=1
        Making threads (all)
Making all in dist/threads
 nmake -nologo all PERL_CORE=1
        Making threads::shared (all)
Making all in dist/threads-shared
 nmake -nologo all PERL_CORE=1
        Making version (all)
Making all in cpan/version
 nmake -nologo all PERL_CORE=1
Nothing happened basically, because the makefiles are from Desktop Perl, and all 
deps were already met for a Desktop build and copied over to Desktop dir (/lib) 
so when the 2nd run happens from Makefile.ce, the per module 
makefiles did nothing.

The makefiles in the module dirs are for Desktop Perl, so they have to recreated 
from running Makefile.PLs. My solution so far is to manually do a 
"nmake Extensions_clean" using the Desktop master makefile before running the 
WinCE master makefile. What is the proper solution for this problem? 

Add a "-if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\ "MAKE=$(MAKE)" 
--dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean" to the 
"Extensions" target in Makefile.ce?

Or teach when to unlink the makefiles when "if (defined $::Cross::platform)" 
is passed to, and have scan the makefile to figure if 
the makefile is a Desktop or Cross makefile, and delete it if it is a Desktop 
one, by expanding on this 
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About