Changeset 742
- Timestamp:
- Dec 17, 2006, 8:41:22 AM (19 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/header.kmk
r731 r742 751 751 endif # __header_kmk__ 752 752 753 -
trunk/kBuild/subfooter.kmk
r729 r742 25 25 # 26 26 27 # 28 # Sanity check. 29 # 30 ifdef __footer_kmk__ 31 $(error kBuild: footer.kmk has already been included. Fix your sub-makefiles!) 32 endif 27 33 28 34 # … … 53 59 54 60 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)))60 61 61 # 62 # When we reach the last makefile we include the footer. 63 # 64 ifeq ($(_SUB_MAKEFILE_STACK),) 62 ifneq ($(_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 69 else 70 # 71 # We've reached the end of the line, include the real footer. 72 # 65 73 include $(PATH_KBUILD)/footer.kmk 74 66 75 endif 67 76 68 -
trunk/kBuild/subheader.kmk
r729 r742 24 24 # 25 25 # 26 27 # 28 # Sanity check. 29 # 30 ifdef __footer_kmk__ 31 $(error kBuild: footer.kmk has already been included. Fix your sub-makefiles!) 32 endif 26 33 27 34 ifndef _SUB_MAKEFILE_NOT_FIRST
Note:
See TracChangeset
for help on using the changeset viewer.