VirtualBox

Changeset 2477 in kBuild


Ignore:
Timestamp:
Jul 20, 2011 9:51:55 AM (14 years ago)
Author:
bird
Message:

footer.kmk: Install fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2475 r2477  
    198198# @param        $2              The target name.
    199199# @param        $3              The _INST value (can be empty).
    200 # @param        $4              The default directory to use when $3 is empty.
    201 _INSTALL_FILE = $(patsubst %/,%/$(notdir $(1)),$(if $(3),$(PATH_INS)/$(3),$(4)/))
     200# @param        $4              The installation root directory.
     201_INSTALL_FILE = $(patsubst %/,%/$(notdir $(1)),$(if $(3),$(4)/$(3),$(4)/))
    202202
    203203
     
    30153015endif
    30163016
    3017 local stage    := $(firstword $($(srcsrc)_STAGE) $($(target)_1_STAGE))
     3017local stage    := $(firstword $($(srcsrc)_STAGE) $($(srcsrc)_INST) $($(target)_1_STAGE))
    30183018ifneq ($(substr $(stage),-1),/)
    30193019 $(warning kBuild: File $(srcsrc) in install target $(target) has a STAGE property without a trailing slash.)
    30203020 local stage   := $(stage)/
    30213021endif
    3022 local stage    := $(stage)/$(dir $(srcdstdir))
     3022local stage    := $(stage)$(dir $(srcdstdir))
    30233023local stagedst := $(call $(instfun),$(srcdst),$(target),$(stage),$(PATH_STAGE))
    30243024
    3025 local inst     := $(firstword $($(srcsrc)_STAGE) $($(target)_1_STAGE))
     3025local inst     := $(firstword $($(srcsrc)_INST) $($(target)_1_INST))
    30263026ifneq ($(substr $(inst),-1),/)
    30273027 $(warning kBuild: File $(srcsrc) in install target $(target) has a INST property without a trailing slash.)
    30283028 local inst    := $(inst)/
    30293029endif
    3030 local inst     := $(inst)/$(dir $(srcdstdir))
     3030local inst     := $(inst)$(dir $(srcdstdir))
    30313031local instdst  := $(call $(instfun),$(srcdst),$(target),$(inst),$(PATH_INS))
    30323032
     
    31063106
    31073107# Adjust the source if we got a default PATH. (This must be done this late!)
    3108 local defpath := $(firstword $($(target)_DEFPATH) $($(target)_PATH))
     3108ifdef $(target)_DEFPATH
     3109local defpath := $($(target)_DEFPATH)
     3110else ifdef $(target)_PATH
     3111local defpath := $($(target)_PATH)
     3112else
     3113local defpath :=
     3114endif
    31093115ifneq ($(defpath),)
    31103116 local srcsrc := $(abspathex $(srcsrc),$(defpath))
     
    31843190endif
    31853191
    3186 local stage    := $(firstword $($(symlnk)_STAGE) $($(target)_1_STAGE))
     3192local stage    := $(firstword $($(symlnk)_STAGE) $(symlnk)_INST) $($(target)_1_STAGE))
    31873193ifneq ($(substr $(stage),-1),/)
    31883194 $(warning kBuild: Symlink $(symlnk) in install target $(target) has a STAGE property without a trailing slash.)
    31893195 local stage   := $(stage)/
    31903196endif
    3191 local stage    := $(stage)/$(dir $(srcdstdir))
     3197local stage    := $(stage)$(dir $(srcdstdir))
    31923198local stagedst := $(call $(instfun),$(symlnk),$(target),$(stage),$(PATH_STAGE))
    31933199
    3194 local inst     := $(firstword $($(symlnk)_STAGE) $($(target)_1_STAGE))
     3200local inst     := $(firstword $($(symlnk)_INST) $($(target)_1_INST))
    31953201ifneq ($(substr $(inst),-1),/)
    31963202 $(warning kBuild: Symlnk $(symlnk) in install target $(target) has a INST property without a trailing slash.)
    31973203 local inst    := $(inst)/
    31983204endif
    3199 local inst     := $(inst)/$(dir $(srcdstdir))
     3205local inst     := $(inst)$(dir $(srcdstdir))
    32003206local instdst  := $(call $(instfun),$(symlnk),$(target),$(inst),$(PATH_INS))
    32013207#$(warning symlnk=$(symlnk) symdst=$(symdst) instdst=$(instdst) stagedst=$(stagedst) instfun=$(instfun) inst=$(inst) stage='$(stage)')
     
    32513257ifdef $(directory)_STAGE
    32523258 local stage := $($(directory)_STAGE)
     3259else ifdef $(directory)_INST
     3260 local stage := $($(directory)_INST)
    32533261else
    32543262 local stage := $($(target)_1_STAGE)
     
    33563364        $($(target)_IFFLAGS) \
    33573365        $($(target)_IFFLAGS.$(bld_trg)) \
    3358         $($(target)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     3366        $($(target)_IFFLAGS.$(bld_trg).$(bld_trg_arch))
    33593367 local top_idflags := \
    33603368        $($(target)_IDFLAGS) \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette