Ignore:
Timestamp:
08/03/2010 22:03:42 (2 years ago)
Author:
chris
Message:

Merge [2608] from trunk into 0.11rc7. Fix the default and clean targets
by moving cleaning lines back where they belong, re-adding dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/RELEASE/0.11rc7/infrastructure/makeparcels.pl.in

    r2518 r2666  
    116116print MAKE "all:\t",join(' ',map {"build-".$_} @parcels),"\n\n"; 
    117117 
    118 print MAKE "clean:\n"; 
    119 for my $parcel (@parcels) 
    120 { 
    121         print MAKE "\trm -rf ", BoxPlatform::parcel_dir($parcel),    "\n"; 
    122         print MAKE "\trm -f ",  BoxPlatform::parcel_target($parcel), "\n"; 
    123 } 
    124  
    125 if ($build_os eq 'CYGWIN') 
    126 { 
    127         print MAKE "\tfind release debug -type f | xargs -r rm -f\n"; 
    128 } 
    129 else 
    130 { 
    131         print MAKE "\tfind release debug -type f -exec rm -f {} \\;\n"; 
    132 } 
    133  
    134118print MAKE <<__END_OF_FRAGMENT; 
    135         \$(MAKE) -C docs clean 
    136  
    137119test:   release/common/test 
    138120 
     
    147129 
    148130my $release_flag = BoxPlatform::make_flag('RELEASE'); 
     131my @clean_deps; 
    149132 
    150133for my $parcel (@parcels) 
     
    260243                        push @parcel_deps, "$dir/docs/${name}.html"; 
    261244                } 
     245                elsif ($type eq 'subdir') 
     246                { 
     247                        print MAKE <<EOF; 
     248.PHONY: $name-build $name-clean 
     249 
     250$name-build: 
     251        \$(MAKE) -C $name 
     252 
     253$name-clean: 
     254        \$(MAKE) -C $name clean 
     255EOF 
     256                        push @parcel_deps, "$name-build"; 
     257                        push @clean_deps,  "$name-clean"; 
     258                } 
    262259        } 
    263260 
     
    352349} 
    353350 
    354 print MAKE <<__E; 
     351print MAKE <<EOF; 
    355352install: 
    356353        cat local/install.msg 
    357354 
    358 __E 
     355clean: @clean_deps 
     356        \$(MAKE) -C docs clean 
     357EOF 
     358 
     359if ($build_os eq 'CYGWIN') 
     360{ 
     361        print MAKE "\tfind release debug -type f | xargs -r rm -f\n"; 
     362} 
     363else 
     364{ 
     365        print MAKE "\tfind release debug -type f -exec rm -f {} \\;\n"; 
     366} 
     367 
     368for my $parcel (@parcels) 
     369{ 
     370        print MAKE "\trm -rf ", BoxPlatform::parcel_dir($parcel),    "\n"; 
     371        print MAKE "\trm -f ",  BoxPlatform::parcel_target($parcel), "\n"; 
     372} 
    359373 
    360374close MAKE; 
Note: See TracChangeset for help on using the changeset viewer.