Changeset 3120


Ignore:
Timestamp:
Oct 31, 2017, 11:51:11 AM (8 years ago)
Author:
bird
Message:

footer-pass2-installs.kmk: Pick up _DEPS and _ORDERDEPS properties on INSTALLS targets too, though, not on the individual sources (yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer-pass2-installs.kmk

    r2726 r3120  
    4343$$(call KB_FN_ASSERT_ABSPATH, stagedst)
    4444$$(call KB_FN_ASSERT_ABSPATH, srcsrc)
    45 $(stagedst) : $(srcsrc) | $(dir $(stagedst))
     45$(stagedst) : $(srcsrc) $(top_deps) | $(dir $(stagedst)) $(top_orderdeps)
    4646        %$$(call MSG_INST_FILE,$(srcsrc),$(stagedst))
    4747        $(top_pre_file_cmds)
     
    5454$$(call KB_FN_ASSERT_ABSPATH, instdst)
    5555$$(call KB_FN_ASSERT_ABSPATH, srcsrc)
    56 $(instdst) : $(srcsrc) | $(dir $(instdst))
     56$(instdst) : $(srcsrc) $(top_deps) | $(dir $(instdst)) $(top_orderdeps)
    5757        %$$(call MSG_INST_FILE,$(srcsrc),$(instdst))
    5858        $(top_pre_file_cmds)
     
    246246define def_install_symlink_rule_staging
    247247$$(call KB_FN_ASSERT_ABSPATH, stagedst)
    248 $(stagedst) : | $(dir $(stagedst))
     248$(stagedst) : $(top_deps) | $(dir $(stagedst)) $(top_orderdeps)
    249249        %$$(call MSG_INST_SYM,$(stagedst),$(symdst))
    250250        $$(QUIET)$$(RM) -f -- $$@
     
    257257define def_install_symlink_rule_installing
    258258$$(call KB_FN_ASSERT_ABSPATH, instdst)
    259 $(instdst) : | $(dir $(instdst))
     259$(instdst) : $(top_deps) | $(dir $(instdst)) $(top_orderdeps)
    260260        %$$(call MSG_INST_SYM,$(instdst),$(symdst))
    261261        $$(QUIET)$$(RM) -f -- $$@
     
    337337define def_install_directory_rule
    338338$$(call KB_FN_ASSERT_ABSPATH, insdst)
    339 $(insdst):
     339$(insdst): $(top_deps) | $(top_orderdeps)
    340340        %$$(call MSG_INST_DIR,$(insdst))
    341341        $(top_pre_dir_cmds)
     
    492492   local top_instfun := _INSTALL_FILE
    493493 endif
     494 local top_deps := \
     495        $($(target)_DEPS.$(bld_trg_cpu)) \
     496        $($(target)_DEPS.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
     497        $($(target)_DEPS.$(bld_trg).$(bld_trg_arch)) \
     498        $($(target)_DEPS.$(bld_trg).$(bld_type)) \
     499        $($(target)_DEPS.$(bld_trg_arch)) \
     500        $($(target)_DEPS.$(bld_trg)) \
     501        $($(target)_DEPS.$(bld_type)) \
     502        $($(target)_DEPS)
     503 local top_orderdeps := \
     504        $($(target)_ORDERDEPS.$(bld_trg_cpu)) \
     505        $($(target)_ORDERDEPS.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
     506        $($(target)_ORDERDEPS.$(bld_trg).$(bld_trg_arch)) \
     507        $($(target)_ORDERDEPS.$(bld_trg).$(bld_type)) \
     508        $($(target)_ORDERDEPS.$(bld_trg_arch)) \
     509        $($(target)_ORDERDEPS.$(bld_trg)) \
     510        $($(target)_ORDERDEPS.$(bld_type)) \
     511        $($(target)_ORDERDEPS)
     512 ifdef $(target)_DEFPATH
     513  local top_defpath := $($(target)_DEFPATH)
     514 else ifdef $(target)_PATH
     515  local top_defpath := $($(target)_PATH)
     516 else
     517  local top_defpath :=
     518 endif
     519 ifneq ($(top_defpath),)
     520  local top_deps      := $(abspathex $(top_deps),$(top_defpath))
     521  local top_orderdeps := $(abspathex $(top_orderdeps),$(top_defpath))
     522 endif
     523
    494524 # The user have to use double expansion and can only use the above locals. Not 100% optimal...
    495525 local top_pre_file_cmds  := $(evalcall def_fn_prop_get_first_defined,PRE_XFILE_CMDS)
Note: See TracChangeset for help on using the changeset viewer.