Changeset 2531 for trunk/kBuild/footer-pass2-compiling-targets.kmk
- Timestamp:
- Aug 2, 2011, 2:07:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer-pass2-compiling-targets.kmk
r2523 r2531 134 134 # @param $($(target)_CMDS_PREV_) The link commands from the previous run. 135 135 define def_link_rule 136 $$(call KB_FN_ASSERT_ABSPATH,out) 136 137 ifndef NO_LINK_CMDS_DEPS 137 138 $(out): .MUST_MAKE = $$(comp-cmds-ex $$($(target)_CMDS_PREV_),$$(commands $$@),FORCE) … … 170 171 # pre_install_cmds, post_install_cmds 171 172 define def_link_install_rule 173 $$(call KB_FN_ASSERT_ABSPATH,$(target)_1_INST_TARGET) 172 174 $($(target)_1_INST_TARGET): $(out) | $$$$(dir $$$$@) 173 175 %$$(call MSG_INST_TRG,$(target),$(out),$$@) … … 184 186 # pre_install_cmds, post_install_cmds 185 187 define def_link_stage_rule 188 $$(call KB_FN_ASSERT_ABSPATH,$(target)_1_STAGE_TARGET) 186 189 $($(target)_1_STAGE_TARGET): $(out) | $$$$(dir $$$$@) 187 190 %$$(call MSG_INST_TRG,$(target),$(out),$$@) … … 388 391 define def_link_install_debug_dir_rule 389 392 local dir := $(debug_inst_path)/$(debug_inst)$(debug_dir) 393 $$(call KB_FN_ASSERT_ABSPATH,dir) 390 394 $$(dir): | $$$$(dir $$$$(patsubst %/,%,$$$$@)) 391 395 %$$(call MSG_INST_DIR,$$@) … … 395 399 396 400 ## 397 # Install a debug file. 401 # Install a debug file. 398 402 # @param debug_file Src=>Dst file pair. 399 403 define def_link_install_debug_file_rule 400 404 local dst := $(debug_inst_path)/$(debug_inst)$(word 2, $(subst =>,$(SP),$(debug_file))) 401 $$(dst): $(word 1, $(subst =>,$(SP),$(debug_file))) | $$$$(dir $$$$@) 405 $$(call KB_FN_ASSERT_ABSPATH,dst) 406 local src := $(word 1, $(subst =>,$(SP),$(debug_file))) 407 $$(call KB_FN_ASSERT_ABSPATH,src) 408 $$(dst): $$(src) | $$$$(dir $$$$@) 402 409 %$$(call MSG_INST_FILE,$$@,$$<) 403 410 $$(QUIET)$(debug_install_cmd) $(if $(mode),-m $(mode)) $(if $(uid),-o $(uid)) $(if $(gid),-g $(gid)) -- $$< $$@ … … 406 413 407 414 ## 408 # Install debug info to $(debug_inst), where debug_inst can be a directory or 415 # Install debug info to $(debug_inst), where debug_inst can be a directory or 409 416 # file (just like $(inst) and $(stage). Used for both staging and installing. 410 417 define def_target_install_only_debug 411 418 if "$(substr $(debug_inst),-1,1)" == "/" 412 419 if "$(debug_inst)" == "./" 413 local debug_inst := 420 local debug_inst := 414 421 endif 415 422 local debug_dirs := $(patsubst $($(target)_0_OUTDIR)/%,%,$($(target)_2_OUTPUT_DEBUG_DIRS))
Note:
See TracChangeset
for help on using the changeset viewer.