Changeset 2242 in kBuild
- Timestamp:
- Jan 10, 2009 2:16:34 AM (16 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/subfooter.kmk
r2240 r2242 5 5 6 6 # 7 # Copyright (c) 2006-200 8 knut st. osmundsen <bird-kBuild-spam@anduin.net>7 # Copyright (c) 2006-2009 knut st. osmundsen <bird-kBuild-spamix@anduin.net> 8 8 # 9 9 # This file is part of kBuild. … … 42 42 # Set the default path for all new targets. 43 43 # 44 ## @todo use $(evalval ) instead of doubly expanded $(eval )?45 44 define def_subheader 46 45 ifndef $(target)_PATH 47 46 ifdef $(target)_DEFPATH 48 $(target)_PATH := $ $($(target)_DEFPATH)47 $(target)_PATH := $($(target)_DEFPATH) 49 48 else 50 $(target)_PATH := $ $(PATH_SUB_CURRENT)51 $(target)_DEFPATH := $ $(PATH_SUB_CURRENT)49 $(target)_PATH := $(PATH_SUB_CURRENT) 50 $(target)_DEFPATH := $(PATH_SUB_CURRENT) 52 51 endif 53 52 else ifndef $(target)_DEFPATH 54 $(target)_DEFPATH := $ $($(target)_PATH)53 $(target)_DEFPATH := $($(target)_PATH) 55 54 endif 56 55 ifndef $(target)_MAKEFILE 57 $(target)_MAKEFILE := $ $(MAKEFILE_CURRENT)56 $(target)_MAKEFILE := $(MAKEFILE_CURRENT) 58 57 endif 59 58 ifndef $(target)_0_OUTDIR 60 $(target)_0_OUTDIR := $ $(call TARGET_PATH,$(target))61 PATH_$(target) := $ $($(target)_0_OUTDIR)59 $(target)_0_OUTDIR := $(call TARGET_PATH,$(target)) 60 PATH_$(target) := $($(target)_0_OUTDIR) 62 61 endif 63 62 endef … … 76 75 $(INSTALLS) $(INSTALLS.$(KBUILD_TARGET)) $(INSTALLS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) $(INSTALLS.$(KBUILD_TARGET_ARCH)) $(INSTALLS.$(KBUILD_TARGET_CPU)) $(INSTALLS.$(KBUILD_TYPE)) \ 77 76 $(OTHERS) $(OTHERS.$(KBUILD_TARGET)) $(OTHERS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) $(OTHERS.$(KBUILD_TARGET_ARCH)) $(OTHERS.$(KBUILD_TARGET_CPU)) $(OTHERS.$(KBUILD_TYPE)) \ 78 ,$(eval $(def_subheader)))77 ,$(evalval def_subheader)) 79 78 80 79 -
trunk/kBuild/subheader.kmk
r2240 r2242 5 5 6 6 # 7 # Copyright (c) 2006-200 8 knut st. osmundsen <bird-kBuild-spam@anduin.net>7 # Copyright (c) 2006-2009 knut st. osmundsen <bird-kBuild-spamix@anduin.net> 8 8 # 9 9 # This file is part of kBuild. … … 53 53 # Set the default path and makefile for all new targets. 54 54 # 55 ## @todo use $(evalval ) instead of doubly expanded $(eval )?56 55 define def_subfooter 57 56 ifndef $(target)_PATH 58 57 ifdef $(target)_DEFPATH 59 $(target)_PATH := $ $($(target)_DEFPATH)58 $(target)_PATH := $($(target)_DEFPATH) 60 59 else 61 $(target)_PATH := $ $(PATH_SUB_CURRENT)62 $(target)_DEFPATH := $ $(PATH_SUB_CURRENT)60 $(target)_PATH := $(PATH_SUB_CURRENT) 61 $(target)_DEFPATH := $(PATH_SUB_CURRENT) 63 62 endif 64 63 else ifndef $(target)_DEFPATH 65 $(target)_DEFPATH := $ $($(target)_PATH)64 $(target)_DEFPATH := $($(target)_PATH) 66 65 endif 67 66 ifndef $(target)_MAKEFILE … … 69 68 endif 70 69 ifndef $(target)_0_OUTDIR 71 $(target)_0_OUTDIR := $ $(call TARGET_PATH,$(target))72 PATH_$(target) := $ $($(target)_0_OUTDIR)70 $(target)_0_OUTDIR := $(call TARGET_PATH,$(target)) 71 PATH_$(target) := $($(target)_0_OUTDIR) 73 72 endif 74 73 endef … … 87 86 $(INSTALLS) $(INSTALLS.$(KBUILD_TARGET)) $(INSTALLS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) $(INSTALLS.$(KBUILD_TARGET_ARCH)) $(INSTALLS.$(KBUILD_TARGET_CPU)) $(INSTALLS.$(KBUILD_TYPE)) \ 88 87 $(OTHERS) $(OTHERS.$(KBUILD_TARGET)) $(OTHERS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) $(OTHERS.$(KBUILD_TARGET_ARCH)) $(OTHERS.$(KBUILD_TARGET_CPU)) $(OTHERS.$(KBUILD_TYPE)) \ 89 ,$(eval $(def_subfooter)))88 ,$(evalval def_subfooter)) 90 89 91 90
Note:
See TracChangeset
for help on using the changeset viewer.