Changeset 2488 for trunk/kBuild/header.kmk
- Timestamp:
- Jul 22, 2011, 9:49:47 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/header.kmk
r2485 r2488 742 742 # @param $1 the path 743 743 no-root-slash = $(patsubst /%,%,$(1)) 744 745 ## 746 # Similar to firstword, except it returns the value of first defined variable. 747 # @param $1 list of variables to probe. 748 define FIRST-DEFINED-VAR 749 if "$1" != "" 750 local var := $(word 1,$1) 751 ifdef $(var) 752 local .RETURN := $(strip $($(var))) 753 else 754 local .RETURN := $(evalcall FIRST-DEFINED-VAR, $(wordlist 2,32,$1)) 755 endif 756 else 757 local .RETURN := 758 endif 759 endef 744 760 745 761 ## Figure out where to put object files.
Note:
See TracChangeset
for help on using the changeset viewer.