Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Make 1.00

    Download button

    No screenshots available
    Downloads: 532  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.3/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Nick Ing-Simmons | More programs
    Perl Artistic License / FREE
    May 9th, 2007, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Make description

    Make is a Perl module for processing makefiles.

    Make is a Perl module for processing makefiles.

    SYNOPSIS

    require Make;
    my $make = Make->new(...);
    $make->parse($file);
    $make->Script(@ARGV)
    $make->Make(@ARGV)
    $make->Print(@ARGV)

    my $targ = $make->Target($name);
    $targ->colon([dependancy...],[command...]);
    $targ->dolon([dependancy...],[command...]);
    my @depends = $targ->colon->depend;
    my @commands = $targ->colon->command;

    Make->new creates an object if new(Makefile => $file) is specified then it is parsed. If not the usual makefile Makefile sequence is used. (If GNU => 1 is passed to new then GNUmakefile is looked for first.)

    $make->Make(target...) 'makes' the target(s) specified (or the first 'real' target in the makefile).

    $make->Print can be used to 'print' to current select'ed stream a form of the makefile with all variables expanded.

    $make->Script(target...) can be used to 'print' to current select'ed stream the equivalent bourne shell script that a make would perform i.e. the output of make -n.

    There are other methods (used by parse) which can be used to add and manipulate targets and their dependants. There is a hierarchy of classes which is still evolving. These classes and their methods will be documented when they are a little more stable.

    The syntax of makefile accepted is reasonably generic, but I have not re-read any documentation yet, rather I have implemented my own mental model of how make works (then fixed it...).

    In addition to traditional

    .c.o :
    $(CC) -c ...

    GNU make's 'pattern' rules e.g.

    %.o : %.c
    $(CC) -c ...

    Likewise a subset of GNU makes $(function arg...) syntax is supported.
    Via pmake Make has built perl/Tk from the MakeMaker generated Makefiles...

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    process makefiles | Makefile sequence | Perl module | Make | process | makefiles

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM