Changeset 2434 for trunk/kBuild
- Timestamp:
- Jan 9, 2011, 6:45:08 PM (15 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r2433 r2434 158 158 $(TOOL.$(bld_trg)) \ 159 159 $(TOOL) \ 160 )) 160 161 else 161 162 _TARGET_TOOL = $(strip $(firstword \ … … 188 189 $(TOOL.$(bld_type)) \ 189 190 $(TOOL) \ 190 191 )) 191 192 endif 192 193 … … 2218 2219 $(SUFF_LIB)) 2219 2220 local out := $(outbase)$(suff) 2220 local defpath := $(firstword $($(target)_PATH) $($(target)_DEFPATH)) 2221 local defpath := $($(target)_DEFPATH) 2222 ifeq ($(defpath),) 2223 local defpath := $($(target)_PATH) 2224 endif 2221 2225 TARGET_$(target) := $(out) 2222 2226 $(target)_1_TARGET:= $(out) … … 2474 2478 TARGET_$(target) := $(out) 2475 2479 $(target)_1_TARGET:= $(out) 2476 local defpath := $(firstword $($(target)_PATH) $($(target)_DEFPATH)) 2480 local defpath := $($(target)_DEFPATH) 2481 ifeq ($(defpath),) 2482 local defpath := $($(target)_PATH) 2483 endif 2477 2484 # no local here - must be writable across some foreachs. 2478 2485 othersrc := … … 3127 3134 3128 3135 # Adjust the source if we got a default PATH. (This must be done this late!) 3129 local defpath := $(firstword $($(target)_PATH) $($(target)_DEFPATH)) 3136 local defpath := $($(target)_DEFPATH) 3137 ifeq ($(defpath),) 3138 local defpath := $($(target)_PATH) 3139 endif 3130 3140 ifneq ($(defpath),) 3131 3141 local srcsrc := $(abspathex $(srcsrc),$(defpath)) -
trunk/kBuild/header.kmk
r2413 r2434 764 764 endef 765 765 766 ## 767 # Make an assignment to a deprecated variable. 768 # 769 # @param $1 The variable name. 770 # @param $2 The value. 771 # @param $3 The variable to use instead. 772 # 773 ifdef KBUILD_WITH_DEPREATED_AS_ERROR 774 KB_FN_ASSIGN_DEPRECATED = $(eval $1 = $2$$(error $1 is deprecated, use $3 instead)) 775 else 776 KB_FN_ASSIGN_DEPRECATED = $(eval $1 = $2$$(warning $1 is deprecated, use $3 instead)) 777 endif 766 778 767 779 -
trunk/kBuild/subfooter.kmk
r2413 r2434 44 44 define def_subheader 45 45 ifndef $(target)_PATH 46 ifdef $(target)_DEFPATH 47 $(target)_PATH := $($(target)_DEFPATH) 48 else 49 $(target)_PATH := $(PATH_SUB_CURRENT) 46 ifndef $(target)_DEFPATH 50 47 $(target)_DEFPATH := $(PATH_SUB_CURRENT) 51 48 endif 49 $(call KB_FN_ASSIGN_DEPRECATED,$(target)_PATH,$($(target)_DEFPATH), $(target)_DEFPATH) 52 50 else ifndef $(target)_DEFPATH 53 51 $(target)_DEFPATH := $($(target)_PATH) … … 58 56 ifndef $(target)_0_OUTDIR 59 57 $(target)_0_OUTDIR := $(call TARGET_PATH,$(target)) 60 PATH_$(target) := $($(target)_0_OUTDIR)58 $(call KB_FN_ASSIGN_DEPRECATED,PATH_$(target),$($(target)_0_OUTDIR), $(target)_0_OUTDIR) 61 59 endif 62 60 endef -
trunk/kBuild/subheader.kmk
r2413 r2434 55 55 define def_subfooter 56 56 ifndef $(target)_PATH 57 ifdef $(target)_DEFPATH 58 $(target)_PATH := $($(target)_DEFPATH) 59 else 60 $(target)_PATH := $(PATH_SUB_CURRENT) 57 ifndef $(target)_DEFPATH 61 58 $(target)_DEFPATH := $(PATH_SUB_CURRENT) 62 59 endif 60 $(call KB_FN_ASSIGN_DEPRECATED,$(target)_PATH,$($(target)_DEFPATH), $(target)_DEFPATH) 63 61 else ifndef $(target)_DEFPATH 64 62 $(target)_DEFPATH := $($(target)_PATH) … … 69 67 ifndef $(target)_0_OUTDIR 70 68 $(target)_0_OUTDIR := $(call TARGET_PATH,$(target)) 71 PATH_$(target) := $($(target)_0_OUTDIR)69 $(call KB_FN_ASSIGN_DEPRECATED,PATH_$(target),$($(target)_0_OUTDIR), $(target)_0_OUTDIR) 72 70 endif 73 71 endef
Note:
See TracChangeset
for help on using the changeset viewer.