perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@locus.apache.org
Subject cvs commit: modperl-2.0 Makefile.PL
Date Sat, 15 Apr 2000 19:04:21 GMT
dougm       00/04/15 12:04:20

  Modified:    .        Makefile.PL
  Log:
  option to compile a single file ala -mmodperl_foo.c
  
  Revision  Changes    Path
  1.5       +3 -1      modperl-2.0/Makefile.PL
  
  Index: Makefile.PL
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/Makefile.PL,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Makefile.PL	2000/04/15 17:38:44	1.4
  +++ Makefile.PL	2000/04/15 19:04:20	1.5
  @@ -56,6 +56,7 @@
   sub make {
       my $target = shift;
       return clean() if $target eq 'c';
  +    my $single_file = $target =~ /\.c$/ ? $target : "";
   
       my $ccopts = ExtUtils::Embed::ccopts();
       my @inc = $build->inc;
  @@ -63,8 +64,9 @@
   
       chdir $code->path;
   
  -    for ($code->c_files) {
  +    for ($single_file ? $single_file : $code->c_files) {
           echo_cmd "$cc -g -Wall $ccopts @inc -c $_";
  +        return if $single_file;
       }
   
       my @objs = $code->o_files;
  
  
  

Mime
View raw message