Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

A Makefile for installing a set of perl scripts and modules

by Tardis (Pilgrim)
on Oct 30, 2002 at 03:24 UTC ( [id://208954]=perlquestion: print w/replies, xml ) Need Help??

Tardis has asked for the wisdom of the Perl Monks concerning the following question:

Hi folks,

I have a bunch of code in CVS that I develop on my workstation , and when properly tested put into production.

The putting into production part is currently more painful that it should be. Typically, two or three source files have been touched, so they get copied over from the workstation and put in the right place. This sucks :-)

Although perl can do everything, it seems that this job is ideally suited for Make.

I'm having trouble finding either good documentation on how to do this make, or good example Makefiles. Everything is oriented toward the C compile/link/install type methodology, where I just want the latter.

Does anyone have a simple makefile which essentially just copies files around, which I could hack on?

Alternatively (and here is where this node gets back on the perl track), is MakeMaker suitable? I've played with it briefly, but it seems to be more geared to creating a Makefile for a system wide perl module, rather than (in this case) a set of files which all live in a single directory and are a complete self-contained system.

  • Comment on A Makefile for installing a set of perl scripts and modules

Replies are listed 'Best First'.
Re: A Makefile for installing a set of perl scripts and modules
by sauoq (Abbot) on Oct 30, 2002 at 03:32 UTC
    Although perl can do everything, it seems that this job is ideally suited for Make.

    It sounds to me like the job is ideally suited for a shell script.

    -sauoq
    "My two cents aren't worth a dime.";
    
      It sounds to me like the job is ideally suited for a shell script.
      Possibly. I didn't completely discount such an idea. However using make or MakeMaker I guess could give me some other niceness, like only changing files that are older than the distribution ones, giving me different install targets for different parts of the system etc.

      I didn't think this wheel was worth re-inventing.

Re: A Makefile for installing a set of perl scripts and modules
by trs80 (Priest) on Oct 30, 2002 at 06:41 UTC
    A new module on CPAN that might fit the bill is CPAN::MakeMaker, appears to have some interesting features, but I am not sure it is mature enough for your needs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://208954]
Approved by trs80
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-04-18 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found