Changeset 2512 in kBuild
- Timestamp:
- Jul 25, 2011 11:26:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/header.kmk
r2493 r2512 71 71 endif 72 72 else 73 if $(KBUILD_VERSION_PATCH) < 574 $( warning kBuild: kmk version mismatch! Expected 0.1.5or later. Actual version is $(KBUILD_VERSION).)73 if $(KBUILD_VERSION_PATCH) < 999 74 $(error kBuild: kmk version mismatch! Expected 0.1.999 or later. Actual version is $(KBUILD_VERSION).) 75 75 endif 76 76 endif … … 698 698 699 699 # When copying to the staging area, use hard links to save time and space. 700 INSTALL_STAGING := $(INSTALL)701 700 ifndef KBUILD_NO_HARD_LINKING 702 if1of ($(KMK_FEATURES), install-hard-linking)703 INSTALL_STAGING := $(INSTALL) --hard-link-files-when-possible704 endif701 INSTALL_STAGING := $(INSTALL) --hard-link-files-when-possible 702 else 703 INSTALL_STAGING := $(INSTALL) 705 704 endif 706 705 … … 746 745 # Similar to firstword, except it returns the value of first defined variable. 747 746 # @param $1 list of variables to probe. 748 if1of ($(KMK_FEATURES), firstdefined) 749 define FIRST-DEFINED-VAR 750 local .RETURN := $(strip $(firstdefined $1, value)) 751 endef 752 else 753 define FIRST-DEFINED-VAR 754 if "$1" != "" 755 local var := $(word 1,$1) 756 ifdef $(var) 757 local .RETURN := $(strip $($(var))) 758 else 759 local .RETURN := $(evalcall FIRST-DEFINED-VAR, $(wordlist 2,32,$1)) 760 endif 761 else 762 local .RETURN := 763 endif 764 endef 765 endif 747 define FIRST-DEFINED-VAR 748 local .RETURN := $(strip $(firstdefined $1, value)) 749 endef 766 750 767 751 ## Figure out where to put object files.
Note:
See TracChangeset
for help on using the changeset viewer.