On 8/9/05, Yu Wang wrote:
> Hi,
> 
> I have written a program using Gtk2 in Perl. It's the first time I write 
> program
> in Perl, so I need some help in writting the Makefile.pl
> 
> I have 1 file for main program, and 5 files for modules. Besides that, I also
> have document files and some data files to be accessed by the code.
> 
> I have read a tutorial about Makefile.pl, but it only teaches me how to 
> install
> modules in to perl module directories. It seems that I couldn't find a 
> tutorial
> on how to write Makefile.pl to perl applications.
> 
> So is there anyone can provide an example or suggest some directions?
> 
> Any help is greatly appreciated!
> 
> Yu Wang
> 

Makefile.PL uses ExtUtils::MakeMaker, which is geared towards, as you
said yourself, Perl module installation.
What you are looking for is a way to write a Makefile (*not* a
Makefile.PL) which will install your "Perl application". This is
outside the realm of Perl - where/how you install your app depends on
your system and on your own decisions. Actually you are better off
using your system's native packaging utilities for the app
installation - deb, rpm or whatever you use.

If you would like to write a Makefile.PL for each of the modules
distributed with your app so that the modules are installed inside the
standard Perl modules installation directories, I suggest reading:
http://search.cpan.org/dist/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Tutorial.pod

HTH,
-- 
Offer Kaye

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to