in reply to Re: problem building extension
in thread problem building extension

I guess I left something out. I have used nmake and it works. I have to use omake for the configuration control system we use here (clearcase). I think what I want to know is whether there's a way to edit Makefile.PL so that in makefile, the makefile dependency isn't checked at all. When I remove the section in the makefile that checks that dependency, the build works. The missing DLL is a different problem. I know how to fix that - sorry for leaving it in. Thanks for so many replies so quick!!

Replies are listed 'Best First'.
Re^3: problem building extension
by tachyon (Chancellor) on Jun 18, 2004 at 00:29 UTC

    Makefile.PL is just perl code. You could add any of:

    unlink './Makefile'; rename './Makefile', './Makefile.old' system('nmake clean') if $^0 =~ m/Win32/;

    before the call to ExtUtils::MakeMaker to get rid of the old Makefile (which I think is the issue).

    Alternatively you can simply EDIT the Makefile after it is created to delete the section that is causing you issues. After the call to MakeMaker add some perl to make any edits you need to keep omake happy.

    You can add any amount of cleanup, prompting, etc, etc code to Makefile.PL. For example it is not uncommon to automatically pick a C/C++ compiler based on platform (see Inline::CPP distro Makefile.PL) or hunt down libraries (and prompt if not found) etc, etc.

    cheers

    tachyon