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/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.