Changeset 742


Ignore:
Timestamp:
Dec 17, 2006, 8:41:22 AM (19 years ago)
Author:
bird
Message:

Fixed the sub-makefile bustage and added two sanitychecks.

Location:
trunk/kBuild
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r731 r742  
    751751endif # __header_kmk__
    752752
     753
  • trunk/kBuild/subfooter.kmk

    r729 r742  
    2525#
    2626
     27#
     28# Sanity check.
     29#
     30ifdef __footer_kmk__
     31$(error kBuild: footer.kmk has already been included. Fix your sub-makefiles!)
     32endif
    2733
    2834#
     
    5359
    5460
    55 #
    56 # Switch back to the context of previous makefile on the stack.
    57 #
    58 MAKEFILE_CURRENT := $(call stack-pop,_SUB_MAKEFILE_STACK)
    59 PATH_SUB_CURRENT := $(abspath $(dir $(MAKEFILE_CURRENT)))
    6061
    61 #
    62 # When we reach the last makefile we include the footer.
    63 #
    64 ifeq ($(_SUB_MAKEFILE_STACK),)
     62ifneq ($(_SUB_MAKEFILE_STACK),)
     63 #
     64 # Switch back to the context of previous makefile on the stack.
     65 #
     66 MAKEFILE_CURRENT := $(call stack-pop,_SUB_MAKEFILE_STACK)
     67 PATH_SUB_CURRENT := $(abspath $(dir $(MAKEFILE_CURRENT)))
     68
     69else
     70 #
     71 # We've reached the end of the line, include the real footer.
     72 #
    6573 include $(PATH_KBUILD)/footer.kmk
     74
    6675endif
    6776
    68 
  • trunk/kBuild/subheader.kmk

    r729 r742  
    2424#
    2525#
     26
     27#
     28# Sanity check.
     29#
     30ifdef __footer_kmk__
     31$(error kBuild: footer.kmk has already been included. Fix your sub-makefiles!)
     32endif
    2633
    2734ifndef _SUB_MAKEFILE_NOT_FIRST
Note: See TracChangeset for help on using the changeset viewer.