VirtualBox

Changeset 2240 in kBuild


Ignore:
Timestamp:
Jan 9, 2009 3:48:32 AM (16 years ago)
Author:
bird
Message:

subheader.kmk,subfooter.kmk: Fixed double expansion bug in previous revision.

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/subfooter.kmk

    r2239 r2240  
    4242# Set the default path for all new targets.
    4343#
     44## @todo use $(evalval ) instead of doubly expanded $(eval )?
    4445define def_subheader
    4546 ifndef $(target)_PATH
    4647  ifdef $(target)_DEFPATH
    47    $(target)_PATH := $($(target)_DEFPATH)
     48   $(target)_PATH := $$($(target)_DEFPATH)
    4849  else
    49    $(target)_PATH := $(PATH_SUB_CURRENT)
    50    $(target)_DEFPATH := $(PATH_SUB_CURRENT)
     50   $(target)_PATH := $$(PATH_SUB_CURRENT)
     51   $(target)_DEFPATH := $$(PATH_SUB_CURRENT)
    5152  endif
    5253 else ifndef $(target)_DEFPATH
    53   $(target)_DEFPATH := $($(target)_PATH)
     54  $(target)_DEFPATH := $$($(target)_PATH)
    5455 endif
    5556 ifndef $(target)_MAKEFILE
    56   $(target)_MAKEFILE := $(MAKEFILE_CURRENT)
     57  $(target)_MAKEFILE := $$(MAKEFILE_CURRENT)
    5758 endif
    5859 ifndef $(target)_0_OUTDIR
    59   $(target)_0_OUTDIR := $(call TARGET_PATH,$(target))
    60   PATH_$(target) := $($(target)_0_OUTDIR)
     60  $(target)_0_OUTDIR := $$(call TARGET_PATH,$(target))
     61  PATH_$(target) := $$($(target)_0_OUTDIR)
    6162 endif
    6263endef
  • trunk/kBuild/subheader.kmk

    r2239 r2240  
    5353 # Set the default path and makefile for all new targets.
    5454 #
     55 ## @todo use $(evalval ) instead of doubly expanded $(eval )?
    5556 define def_subfooter
    5657  ifndef $(target)_PATH
    5758   ifdef $(target)_DEFPATH
    58     $(target)_PATH := $($(target)_DEFPATH)
     59    $(target)_PATH := $$($(target)_DEFPATH)
    5960   else
    60     $(target)_PATH := $(PATH_SUB_CURRENT)
    61     $(target)_DEFPATH := $(PATH_SUB_CURRENT)
     61    $(target)_PATH := $$(PATH_SUB_CURRENT)
     62    $(target)_DEFPATH := $$(PATH_SUB_CURRENT)
    6263   endif
    6364  else ifndef $(target)_DEFPATH
    64    $(target)_DEFPATH := $($(target)_PATH)
     65   $(target)_DEFPATH := $$($(target)_PATH)
    6566  endif
    6667  ifndef $(target)_MAKEFILE
     
    6869  endif
    6970  ifndef $(target)_0_OUTDIR
    70    $(target)_0_OUTDIR := $(call TARGET_PATH,$(target))
    71    PATH_$(target) := $($(target)_0_OUTDIR)
     71   $(target)_0_OUTDIR := $$(call TARGET_PATH,$(target))
     72   PATH_$(target) := $$($(target)_0_OUTDIR)
    7273  endif
    7374 endef
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