Changeset 2477 in kBuild
- Timestamp:
- Jul 20, 2011 9:51:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r2475 r2477 198 198 # @param $2 The target name. 199 199 # @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)/)) 202 202 203 203 … … 3015 3015 endif 3016 3016 3017 local stage := $(firstword $($(srcsrc)_STAGE) $($( target)_1_STAGE))3017 local stage := $(firstword $($(srcsrc)_STAGE) $($(srcsrc)_INST) $($(target)_1_STAGE)) 3018 3018 ifneq ($(substr $(stage),-1),/) 3019 3019 $(warning kBuild: File $(srcsrc) in install target $(target) has a STAGE property without a trailing slash.) 3020 3020 local stage := $(stage)/ 3021 3021 endif 3022 local stage := $(stage) /$(dir $(srcdstdir))3022 local stage := $(stage)$(dir $(srcdstdir)) 3023 3023 local stagedst := $(call $(instfun),$(srcdst),$(target),$(stage),$(PATH_STAGE)) 3024 3024 3025 local inst := $(firstword $($(srcsrc)_ STAGE) $($(target)_1_STAGE))3025 local inst := $(firstword $($(srcsrc)_INST) $($(target)_1_INST)) 3026 3026 ifneq ($(substr $(inst),-1),/) 3027 3027 $(warning kBuild: File $(srcsrc) in install target $(target) has a INST property without a trailing slash.) 3028 3028 local inst := $(inst)/ 3029 3029 endif 3030 local inst := $(inst) /$(dir $(srcdstdir))3030 local inst := $(inst)$(dir $(srcdstdir)) 3031 3031 local instdst := $(call $(instfun),$(srcdst),$(target),$(inst),$(PATH_INS)) 3032 3032 … … 3106 3106 3107 3107 # Adjust the source if we got a default PATH. (This must be done this late!) 3108 local defpath := $(firstword $($(target)_DEFPATH) $($(target)_PATH)) 3108 ifdef $(target)_DEFPATH 3109 local defpath := $($(target)_DEFPATH) 3110 else ifdef $(target)_PATH 3111 local defpath := $($(target)_PATH) 3112 else 3113 local defpath := 3114 endif 3109 3115 ifneq ($(defpath),) 3110 3116 local srcsrc := $(abspathex $(srcsrc),$(defpath)) … … 3184 3190 endif 3185 3191 3186 local stage := $(firstword $($(symlnk)_STAGE) $( $(target)_1_STAGE))3192 local stage := $(firstword $($(symlnk)_STAGE) $(symlnk)_INST) $($(target)_1_STAGE)) 3187 3193 ifneq ($(substr $(stage),-1),/) 3188 3194 $(warning kBuild: Symlink $(symlnk) in install target $(target) has a STAGE property without a trailing slash.) 3189 3195 local stage := $(stage)/ 3190 3196 endif 3191 local stage := $(stage) /$(dir $(srcdstdir))3197 local stage := $(stage)$(dir $(srcdstdir)) 3192 3198 local stagedst := $(call $(instfun),$(symlnk),$(target),$(stage),$(PATH_STAGE)) 3193 3199 3194 local inst := $(firstword $($(symlnk)_ STAGE) $($(target)_1_STAGE))3200 local inst := $(firstword $($(symlnk)_INST) $($(target)_1_INST)) 3195 3201 ifneq ($(substr $(inst),-1),/) 3196 3202 $(warning kBuild: Symlnk $(symlnk) in install target $(target) has a INST property without a trailing slash.) 3197 3203 local inst := $(inst)/ 3198 3204 endif 3199 local inst := $(inst) /$(dir $(srcdstdir))3205 local inst := $(inst)$(dir $(srcdstdir)) 3200 3206 local instdst := $(call $(instfun),$(symlnk),$(target),$(inst),$(PATH_INS)) 3201 3207 #$(warning symlnk=$(symlnk) symdst=$(symdst) instdst=$(instdst) stagedst=$(stagedst) instfun=$(instfun) inst=$(inst) stage='$(stage)') … … 3251 3257 ifdef $(directory)_STAGE 3252 3258 local stage := $($(directory)_STAGE) 3259 else ifdef $(directory)_INST 3260 local stage := $($(directory)_INST) 3253 3261 else 3254 3262 local stage := $($(target)_1_STAGE) … … 3356 3364 $($(target)_IFFLAGS) \ 3357 3365 $($(target)_IFFLAGS.$(bld_trg)) \ 3358 $($(target)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \3366 $($(target)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) 3359 3367 local top_idflags := \ 3360 3368 $($(target)_IDFLAGS) \
Note:
See TracChangeset
for help on using the changeset viewer.