Ignore:
Timestamp:
Dec 17, 2006, 3:12:07 AM (19 years ago)
Author:
bird
Message:

The target _PATH property should be working now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/subheader.kmk

    r725 r729  
    2525#
    2626
    27 ifndef _SUB_MAKEFILE_STACK
     27ifndef _SUB_MAKEFILE_NOT_FIRST
     28
    2829 #
    2930 # The first time we just take the makefile context set by header.kmk.
    3031 #
     32 _SUB_MAKEFILE_NOT_FIRST := 1
    3133 include $(PATH_KBUILD)/header.kmk
    32 
     34 
    3335else
    3436
     
    6365 # Switch context.
    6466 #
     67
     68 # push the current old makefile onto the stack.
     69 $(call stack-push,_SUB_MAKEFILE_STACK,$(MAKEFILE_CURRENT))
     70
     71 # the current makefile is the 2nd from the end of the MAKEFILE_LIST (we're the last one).
    6572 __tmp := $(MAKEFILE_LIST)
    6673 $(call stack-popv,__tmp)
    6774 MAKEFILE_CURRENT := $(call stack-top,__tmp)
    68  PATH_SUB_CURRENT := $(abspath $(patsubst %/,%,$(dir $(MAKEFILE_CURRENT))))
     75 PATH_SUB_CURRENT := $(abspath $(dir $(MAKEFILE_CURRENT)))
    6976endif
    7077
    71 $(call stack-push,_SUB_MAKEFILE_STACK,$(MAKEFILE_CURRENT))
    72 
Note: See TracChangeset for help on using the changeset viewer.