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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.