Changeset 552 for trunk/kBuild/header.kmk
- Timestamp:
- Sep 24, 2006, 9:37:41 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/kBuild/header.kmk ¶
r547 r552 163 163 # Common definitions. 164 164 # 165 ifeq ($(filter abspath,$(KMK_FEATURES)),abspath)166 167 165 PATH_CURRENT := $(abspath $(CURDIR)) 168 166 ifneq ($(strip $(SUB_DEPTH)),) … … 172 170 endif 173 171 PATH_ROOT := $(abspath $(PATH_CURRENT)/$(DEPTH)) 174 175 else176 177 PATH_CURRENT := $(CURDIR)178 PATH_SUB_CURRENT := $(PATH_CURRENT)179 ifneq ($(strip $(SUB_DEPTH)),)180 ifneq ($(SUB_DEPTH),.)181 $(foreach d,$(subst /, ,$(SUB_DEPTH)), $(eval PATH_SUB_CURRENT := $(patsubst %/,%,$(dir $(PATH_SUB_CURRENT)))) )182 endif183 endif184 PATH_ROOT := $(PATH_CURRENT)185 ifneq ($(DEPTH),.)186 $(foreach d,$(subst /, ,$(DEPTH)), $(eval PATH_ROOT := $(patsubst %/,%,$(dir $(PATH_ROOT)))) )187 endif188 189 endif190 172 191 173 # Subdirectory relative to the root. … … 220 202 PATH_KBUILD := $(PATH_ROOT)/kBuild 221 203 endif 222 ifeq ($(filter abspath,$(KMK_FEATURES)),abspath)223 204 PATH_KBUILD := $(abspath $(PATH_KBUILD)) 224 endif225 205 # kBuild files which might be of interest. 226 206 FILE_KBUILD_HEADER := $(PATH_KBUILD)/header.kmk … … 455 435 # 456 436 # @param $1 The paths to make absolute. 457 ifeq ($(filter abspath,$(KMK_FEATURES)),abspath)458 437 ABSPATH = $(abspath $(1)) 459 else460 ABSPATH = $(foreach path,$(1)\461 ,$(strip $(if $(subst <,,$(firstword $(subst /, ,<$(path)))),\462 $(if $(patsubst %:,,$(firstword $(subst :,: ,$(path)))),$(PATH_CURRENT)/$(path),$(path)),\463 $(path))))464 endif465 438 466 439 ## DIRDEP - make create directory dependencies.
Note:
See TracChangeset
for help on using the changeset viewer.