Ticket #238: tt238-install-devel.patch

File tt238-install-devel.patch, 4.5 KB (added by rurban, 13 years ago)
  • MANIFEST.generated

    old new  
    7373installable_pbc_merge                             [main]bin 
    7474installable_pbc_merge.exe                         [main]bin 
    7575libparrot.dll                                     [main]bin 
     76libparrot.lib                                     [main]lib 
    7677parrot.pc                                         [main]pkgconfig 
    7778pbc_disassemble                                   [main]bin 
    7879pbc_disassemble.exe                               [main]bin 
     
    8485pbc_merge.exe                                     [main]bin 
    8586pbc_to_exe                                        [main]bin 
    8687pbc_to_exe.exe                                    [main]bin 
    87 pdb                                               [main]bin 
    88 pdb.exe                                           [main]bin 
     88parrot_debugger                                   [main]bin 
     89parrot_debugger.exe                               [main]bin 
    8990pirc                                              [main]bin 
    9091pirc.exe                                          [main]bin 
    9192runtime/parrot/dynext/apl_group.bundle            [library] 
     
    260261src/parrot_config.c                               [main] 
    261262src/string_private_cstring.h                      [main]include 
    262263tools/build/dynpmc.pl                             [devel] 
     264tools/build/dynoplibs.pl                          [devel] 
    263265tools/install/smoke.pl                            [main] 
  • tools/dev/install_files.pl

    old new  
    2020 
    2121=over 4 
    2222 
    23 =item C<buildprefix> 
     23=item C<--devel> 
     24 
     25Install developer tools to build dynpmc and dynoplibs. 
     26 
     27=item C<--destdir> 
     28 
     29Installation prefix. Defaults to ''. 
     30 
     31=item C<--buildprefix> 
    2432 
    2533The build prefix. Defaults to ''. 
    2634 
    27 =item C<prefix> 
     35=item C<--prefix> 
    2836 
    2937The install prefix. Defaults to '/usr'. 
    3038 
    31 =item C<exec_prefix> 
     39=item C<--exec_prefix> 
    3240 
    3341The exec prefix. Defaults to '/usr'. 
    3442 
    35 =item C<bindir> 
     43=item C<--bindir> 
    3644 
    3745The executables directory. Defaults to '/usr/bin'. 
    3846 
    39 =item C<libdir> 
     47=item C<--libdir> 
    4048 
    4149The library directory. Defaults to '/usr/lib'. 
    4250 
    43 =item C<includedir> 
     51=item C<--includedir> 
    4452 
    4553The header directory. Defaults to '/usr/include'. 
    4654 
     
    127135    libdir      => '/usr/lib/parrot', 
    128136    includedir  => '/usr/include/parrot', 
    129137    docdir      => '/usr/share/doc/parrot', 
     138    devel       => 0, 
    130139    'dry-run'   => 0, 
    131140); 
    132141 
     
    167176    $meta =~ s/^\[(.*?)\]//; 
    168177    next unless $package;    # Skip if this file belongs to no package 
    169178 
    170     next unless $package =~ /main|library/; 
     179    next unless $package =~ $options{devel} ? /main|library|devel/ : /main|library/; 
    171180 
    172181    my %meta; 
    173182    @meta{ split( /,/, $meta ) } = (); 
     
    205214    elsif ( /\[library]/ ) { 
    206215        $dest =~ s/^runtime/$options{libdir}/; 
    207216    } 
     217    elsif ( /\[devel]/ ) { 
     218        $dest =~ s/^tools//; 
     219        $dest = File::Spec->catdir( $options{libdir}, $dest ); 
     220    } 
    208221    else { 
    209222        $dest = File::Spec->catdir( $options{prefix}, $dest ); 
    210223    } 
  • config/gen/makefiles/root.in

    old new  
    651651        @echo "" 
    652652        @echo "Installation:" 
    653653        @echo "  install:           Install under '$(PREFIX)' on Unix systems" 
     654        @echo "  install-devel:     Install including '$(LIBDIR)/parrot/tools'" 
    654655        @echo "" 
    655656        @echo "Documentation:" 
    656657        @echo "  help:              Print this help message." 
     
    21142115    --docdir=$(DOC_DIR) \ 
    21152116    MANIFEST MANIFEST.generated 
    21162117 
     2118install-devel: installable 
     2119        $(PERL) tools/dev/install_files.pl --devel \ 
     2120    --buildprefix=$(BUILDPREFIX) \ 
     2121    --prefix=$(PREFIX) \ 
     2122    --exec-prefix=$(EXEC_PREFIX) \ 
     2123    --bindir=$(BIN_DIR) \ 
     2124    --libdir=$(LIB_DIR) \ 
     2125    --includedir=$(INCLUDE_DIR) \ 
     2126    --destdir=$(DESTDIR) \ 
     2127    --docdir=$(DOC_DIR) \ 
     2128    MANIFEST MANIFEST.generated 
     2129 
    21172130############################################################################### 
    21182131# 
    21192132# release targets