Changeset 9db0ec2 in rtems


Ignore:
Timestamp:
Jan 12, 2006, 4:02:51 AM (14 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
dbe8e519
Parents:
a533890
Message:

2006-10-12 Ralf Corsepius <ralf.corsepius@…>

  • ampolish3.in: Check if Makefile.am already contains CLEANFILES or DISTCLEANFILES.
Location:
tools/build
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/build/ChangeLog

    ra533890 r9db0ec2  
     12006-10-12      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * ampolish3.in: Check if Makefile.am already contains CLEANFILES or
     4        DISTCLEANFILES.
     5
    162006-10-10      Ralf Corsepius <ralf.corsepius@rtems.org>
    27
    3         * ampolish3.im: Update.
     8        * ampolish3.in: Update.
    49
    5102005-10-25      Ralf Corsepius <ralf.corsepius@rtems.org>
  • tools/build/ampolish3.in

    ra533890 r9db0ec2  
    11#! @PERL@ -w
     2
     3# $Id$
    24
    35# Helper script to generate pre/tmpinstall rules for cpukit Makefile.am.
     
    103105    push @buffer2, "$l";
    104106  }
     107
     108  # Check if Makefile.am already contains CLEANFILES or DISTCLEANFILES
     109  if ( $l =~ /^\s*(CLEANFILES|DISTCLEANFILES)\s*\=.*$/o )
     110  {
     111    $predefs{"$1"} = 1;
     112  }
    105113}
    106114
     
    215223  $output .= "$k =\n";
    216224  if ( $k =~ /.*FILES/o ) {
    217     $output .= "CLEANFILES += \$($k)\n";
     225    $output .= "CLEANFILES ";
     226    if ( $predefs{"CLEANFILES"} ) {
     227      $output .= "+";
     228      $predefs{"CLEANFILES"} = 1;
     229    }
     230    $output .= "= \$($k)\n";
    218231  } elsif ( $k =~ /.*DIRS/o ) {
    219     $output .= "DISTCLEANFILES += \$($k)\n";
     232    $output .= "DISTCLEANFILES ";
     233    if ( $predefs{"DISTCLEANFILES"} ) {
     234      $output .= "+";
     235      $predefs{"DISTCLEANFILES"} = 1;
     236    }
     237    $output .= "= \$($k)\n";
    220238  }
    221239  $output .= "\n";
Note: See TracChangeset for help on using the changeset viewer.