VirtualBox

Changeset 1754 in kBuild for trunk


Ignore:
Timestamp:
Sep 6, 2008 3:23:03 AM (16 years ago)
Author:
bird
Message:

footer.kmk: Gave install targets a directory in the object tree, e.i. a PATH_<target> property, like the rest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1702 r1754  
    14831483local bld_trg_cpu := $(firstword $($(target)_BLD_TRG_CPU)  $(KBUILD_TARGET_CPU))
    14841484# TARGET_*
    1485 TARGET_$(target) := $(PATH_TARGET)/$(target).ins
     1485TARGET_$(target)  := $(PATH_TARGET)/$(target).ins
    14861486# INSTARGET_ later.
    1487 endef
     1487# PATH_*
     1488local outbase     := $(call TARGET_BASE,$(target),$(target))
     1489PATH_$(target)    := $(patsubst %/,%,$(dir $(outbase)))
     1490endef # def_pass1_install
    14881491$(foreach target, $(_ALL_INSTALLS), \
    14891492        $(evalval def_pass1_install))
     
    32143217INSTARGET_$(target) := $($(target)_GOALS)
    32153218INSTARGET_DIRS_$(target) :=
     3219local outbase := $(call TARGET_BASE,$(target),$(target))
     3220ifndef PATH_$(target)
     3221 PATH_$(target) := $(patsubst %/,%,$(dir $(outbase)))
     3222else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase))))
     3223 $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase))))
     3224endif
    32163225
    32173226local clean_files := $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type))
     
    32373246_INSTALLS_DIRS += $(INSTARGET_DIRS_$(target))
    32383247_CLEAN_FILES += $(clean_files)
    3239 _DIRS += $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
     3248_DIRS += $(PATH_$(target)) $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
    32403249endef
    32413250
Note: See TracChangeset for help on using the changeset viewer.

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