Changeset 2240 in kBuild
- Timestamp:
- Jan 9, 2009 3:48:32 AM (16 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/subfooter.kmk
r2239 r2240 42 42 # Set the default path for all new targets. 43 43 # 44 ## @todo use $(evalval ) instead of doubly expanded $(eval )? 44 45 define def_subheader 45 46 ifndef $(target)_PATH 46 47 ifdef $(target)_DEFPATH 47 $(target)_PATH := $ ($(target)_DEFPATH)48 $(target)_PATH := $$($(target)_DEFPATH) 48 49 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) 51 52 endif 52 53 else ifndef $(target)_DEFPATH 53 $(target)_DEFPATH := $ ($(target)_PATH)54 $(target)_DEFPATH := $$($(target)_PATH) 54 55 endif 55 56 ifndef $(target)_MAKEFILE 56 $(target)_MAKEFILE := $ (MAKEFILE_CURRENT)57 $(target)_MAKEFILE := $$(MAKEFILE_CURRENT) 57 58 endif 58 59 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) 61 62 endif 62 63 endef -
trunk/kBuild/subheader.kmk
r2239 r2240 53 53 # Set the default path and makefile for all new targets. 54 54 # 55 ## @todo use $(evalval ) instead of doubly expanded $(eval )? 55 56 define def_subfooter 56 57 ifndef $(target)_PATH 57 58 ifdef $(target)_DEFPATH 58 $(target)_PATH := $ ($(target)_DEFPATH)59 $(target)_PATH := $$($(target)_DEFPATH) 59 60 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) 62 63 endif 63 64 else ifndef $(target)_DEFPATH 64 $(target)_DEFPATH := $ ($(target)_PATH)65 $(target)_DEFPATH := $$($(target)_PATH) 65 66 endif 66 67 ifndef $(target)_MAKEFILE … … 68 69 endif 69 70 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) 72 73 endif 73 74 endef
Note:
See TracChangeset
for help on using the changeset viewer.