Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

How to create a Makefile for a Perl application?

by pandr (Acolyte)
on May 15, 2000 at 20:07 UTC ( [id://11668]=perlquestion: print w/replies, xml ) Need Help??

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

I was wondering if anybody had good advise on how to create a Makefile for a Perl application (i.e. not a _module_ but a set of scripts). MakeMaker is pretty much targeted to the Module setup. What do you guys do when you want to be able to do "make dist", "make install" etc. but in a non-module situation. Actually more like a regular installation of some application (like Apache or whatever). - pandr
  • Comment on How to create a Makefile for a Perl application?

Replies are listed 'Best First'.
Re: How to create a Makefile for a Perl application?
by btrott (Parson) on May 15, 2000 at 20:27 UTC
    Actually, MakeMaker can do just fine installing a set of scripts. Tom Christiansen's pmtools package is such a set, so you could look at the Makefile for that and see how it's done.

    Essentially, you just use EXE_FILES:

    WriteMakefile( 'NAME' => 'Foo', 'EXE_FILES' => ['foo', 'bar'], );
Re: How to create a Makefile for a Perl application?
by guice (Scribe) on May 15, 2000 at 20:16 UTC
    Well.. If you want to install a load of scripts. Why not make a shell script that will it for them. If you want to make a Makefile that you can use on your Perl Scripts, I'd suggest O'Reilly's book on make. Can't recall the name right off hand. It basically breaks down the parts of the make file. A make file is just a file that runs a set of commands. It's just created in a format that the application make will understand and run. If you think of Makefiles like that, it won't be hard to make your make :)

    -- philip
    We put the 'K' in kwality!

      I have script as follows:

      perl -I -Mmod1 -Mmod2 pgm.pl paramFile perl -I -Mmod3 -Mmod4 pgm2.pl paramFile2

      How can I put this into a makefile?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11668]
Approved by root
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-25 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found