dougm       00/04/24 20:47:32

  Modified:    .        Makefile.PL
  Log:
  fix 'make clean'
  
  Revision  Changes    Path
  1.13      +12 -4     modperl-2.0/Makefile.PL
  
  Index: Makefile.PL
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/Makefile.PL,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Makefile.PL       2000/04/21 20:18:09     1.12
  +++ Makefile.PL       2000/04/25 03:47:31     1.13
  @@ -24,6 +24,9 @@
   WriteMakefile(
       NAME => 'mod_perl',
       VERSION => $VERSION,
  +    macro => {
  +        MODPERL_SRC => $code->path,
  +    },
       clean => {
           FILES => "@{ clean_files() }",
       },
  @@ -148,25 +151,30 @@
   sub MY::top_targets {
       my $self = shift;
       my $string = $self->MM::top_targets;
  -    my $path = $code->path;
   
       for (qw(SHARED STATIC)) {
           $string .= <<EOF;
   
   $build->{"MODPERL_LIB_$_"}:
  -     @(cd $path && \$(MAKE) \$\@);
  +     @(cd \$(MODPERL_SRC) && \$(MAKE) \$\@);
   
   EOF
       }
   
  +    $string .= <<'EOF';
  +
  +modperl_src_clean:
  +     @(cd $(MODPERL_SRC) && $(MAKE) clean);
  +
  +EOF
  +
       $string;
   }
   
   sub MY::clean {
       my $self = shift;
       my $string = $self->MM::clean(@_);
  -    my $path = $code->path;
  -    $string .= "\t-cd $path && \$(MAKE) clean\n";
  +    $string =~ s/(clean\s+::)/$1 modperl_src_clean /;
       $string;
   }
   
  
  
  

Reply via email to