Changeset 948 for trunk/base


Ignore:
Timestamp:
Oct 5, 2002, 1:17:09 AM (22 years ago)
Author:
kevin
Message:

Change make.* options to build.* since they pertain to the build target, and
make isn't always the command that's used.

Location:
trunk/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/portfile.7

    r738 r948  
    527527Execute necessary build commands
    528528.Bl -tag -width lc
    529 .It Ic make.cmd
     529.It Ic build.cmd
    530530Make command to run relative to ${worksrcdir}
    531531.br
     
    536536.br
    537537.Sy Example:
    538 .Dl make.cmd    pbxbuild
    539 
    540 .It Ic make.type
     538.Dl build.cmd   pbxbuild
     539
     540.It Ic build.type
    541541Type of make required, either 'gnu' or 'bsd'
    542 Sets make.cmd to either 'gnumake' or 'bsdmake' accordingly
     542Sets build.cmd to either 'gnumake' or 'bsdmake' accordingly
    543543.br
    544544.Sy Type:
     
    548548.br
    549549.Sy Example:
    550 .Dl make.type   gnu
    551 
    552 .It Ic make.pre_args
    553 Arguments to pass to ${make.cmd} before ${make.args}
    554 .br
    555 .Sy Type:
    556 .Em read-only
    557 .Sy Default:
    558 .Em ${make.target.current}
    559 
    560 
    561 .It Ic make.args
    562 Arguments to pass to ${make.cmd}
    563 .br
    564 .Sy Type:
    565 .Em optional
    566 .br
    567 .Sy Example:
    568 .Dl make.args   -DNOWARN
    569 
    570 
    571 .It Ic make.target.all
     550.Dl build.type  gnu
     551
     552.It Ic build.pre_args
     553Arguments to pass to ${build.cmd} before ${build.args}
     554.br
     555.Sy Type:
     556.Em read-only
     557.Sy Default:
     558.Em ${build.target.current}
     559
     560
     561.It Ic build.args
     562Arguments to pass to ${build.cmd}
     563.br
     564.Sy Type:
     565.Em optional
     566.br
     567.Sy Example:
     568.Dl build.args  -DNOWARN
     569
     570
     571.It Ic build.target.all
    572572Target to pass to make for building everything
    573573.br
     
    578578.br
    579579.Sy Example:
    580 .Dl make.target.all all-src
     580.Dl build.target.all all-src
    581581
    582582.El
     
    586586.Bl -tag -width lc
    587587
    588 .It Ic make.target.install
    589 Install target to pass to ${make.cmd}
     588.It Ic build.target.install
     589Install target to pass to ${build.cmd}
    590590.br
    591591.Sy Type:
     
    595595.br
    596596.Sy Example:
    597 .Dl make.target.install install-src
     597.Dl build.target.install        install-src
    598598
    599599.El
  • trunk/base/src/port1.0/portbuild.tcl

    r933 r948  
    3939
    4040# define options
    41 options make.target.all
    42 commands make
     41options build.target.all
     42commands build
    4343# defaults
    44 default make.dir {${workpath}/${worksrcdir}}
    45 default make.cmd {[build_getmaketype]}
    46 default make.pre_args {${make.target.current}}
    47 default make.target.all all
     44default build.dir {${workpath}/${worksrcdir}}
     45default build.cmd {[build_getmaketype]}
     46default build.pre_args {${build.target.current}}
     47default build.target.all all
    4848
    4949set UI_PREFIX "---> "
    5050
    5151proc build_getmaketype {args} {
    52     global make.type make.cmd os.name
     52    global build.type build.cmd os.name
    5353
    54     if ![info exists make.type] {
     54    if ![info exists build.type] {
    5555        return make
    5656    }
    57     switch -exact -- ${make.type} {
     57    switch -exact -- ${build.type} {
    5858        bsd {
    5959            if {${os.name} == "darwin"} {
     
    7474        }
    7575        default {
    76             ui_warning "Unknown make.type ${make.type}, using 'gnumake'"
     76            ui_warning "Unknown build.type ${build.type}, using 'gnumake'"
    7777            return gnumake
    7878        }
     
    8181
    8282proc build_main {args} {
    83     global portname portpath workdir prefix make.type make.cmd make.env make.target.all make.target.current UI_PREFIX worksrcdir
     83    global portname portpath workdir prefix build.type build.cmd build.env build.target.all build.target.current UI_PREFIX worksrcdir
    8484
    85     ui_msg "$UI_PREFIX Building $portname with target ${make.target.all}"
    86     set make.target.current ${make.target.all}
     85    ui_msg "$UI_PREFIX Building $portname with target ${build.target.all}"
     86    set build.target.current ${build.target.all}
    8787    system "[command make]"
    8888    return 0
  • trunk/base/src/port1.0/portinstall.tcl

    r821 r948  
    3939
    4040# define options
    41 options make.target.install
     41options build.target.install
    4242# Set defaults
    43 default make.target.install install
     43default build.target.current install
    4444
    4545set UI_PREFIX "---> "
    4646
    4747proc install_main {args} {
    48     global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstall workdir worksrcdir prefix make.type make.cmd make.target.install UI_PREFIX make.target.current
     48    global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstall workdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current
    4949
    5050    if ![file exists $prefix] {
     
    5555        }
    5656    }
    57     ui_msg "$UI_PREFIX Installing $portname with target ${make.target.install}"
    58     set make.target.current ${make.target.install}
     57    ui_msg "$UI_PREFIX Installing $portname with target ${build.target.install}"
     58    set build.target.current ${build.target.install}
    5959    if [catch {system "[command make]"}] {
    6060        ui_error "Installation failed."
Note: See TracChangeset for help on using the changeset viewer.