develooper Front page | perl.module-authors | Postings from January 2010

conditional make with ExtUtils::MakeMaker

From:
Jose Luis Martinez
Date:
January 28, 2010 02:47
Subject:
conditional make with ExtUtils::MakeMaker
Message ID:
20100127182223.14451.qmail@lists-nntp.develooper.com
Hi,

I'm creating a Client/Server perl application, and would like the 
makefile only build/install what is needed for clients and for servers 
when specified. Is there a standard way to do this?

I have this MakeFile:
http://code.google.com/p/nsca2/source/browse/trunk/Makefile.PL

The thing is that NRD/Daemon.pm and bin/nrd should only be installed and 
doing a "server install", and bin/send_nrd should be installed on a 
"client install".

Also: not all modules are required for client operation (Net::Server and 
Net::CIDR are only for server mode)

Thanks in advance,

Jose Luis Martinez
jlmartinez@capside.com



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About