- Timestamp:
- Aug 11, 2005 8:24:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/header.kmk
r299 r306 184 184 # Common definitions. 185 185 # 186 ifeq ($(filter abspath,$(KMK_FEATURES)),abspath) 187 PATH_CURRENT := $(abspath $(CURDIR)) 188 PATH_ROOT := $(abspath $(PATH_CURRENT)/$(DEPTH)) 189 190 else 191 186 192 PATH_CURRENT := $(CURDIR) 187 193 # Get the real root path. … … 190 196 $(foreach d,$(subst /, ,$(DEPTH)), $(eval PATH_ROOT := $(patsubst %/,%,$(dir $(PATH_ROOT)))) ) 191 197 endif 198 199 endif 192 200 # Subdirectory relative to the root. 193 ifneq ($( DEPTH),.)194 CURSUBDIR := $(patsubst $(PATH_ROOT)/%,%,$( CURDIR))201 ifneq ($(PATH_ROOT),$(PATH_CURRENT)) 202 CURSUBDIR := $(patsubst $(PATH_ROOT)/%,%,$(PATH_CURRENT)) 195 203 else 196 204 CURSUBDIR := . 197 205 endif 206 198 207 # Output directories. 199 208 ifndef PATH_OUT_BASE … … 224 233 ifndef PATH_KBUILD 225 234 PATH_KBUILD := $(PATH_ROOT)/kBuild 235 endif 236 ifeq ($(filter abspath,$(KMK_FEATURES)),abspath) 237 PATH_KBUILD := $(abspath $(PATH_KBUILD)) 226 238 endif 227 239 # kBuild tools … … 377 389 # 378 390 # @param $1 The paths to make absolute. 391 ifeq ($(filter abspath,$(KMK_FEATURES)),abspath) 392 ABSPATH = $(abspath $(1)) 393 else 379 394 ABSPATH = $(foreach path,$(1)\ 380 395 ,$(strip $(if $(subst <,,$(firstword $(subst /, ,<$(path)))),\ 381 396 $(if $(patsubst %:,,$(firstword $(subst :,: ,$(path)))),$(PATH_CURRENT)/$(path),$(path)),\ 382 397 $(path)))) 398 endif 399 383 400 ## DIRDEP - make create directory dependencies. 384 401 #
Note:
See TracChangeset
for help on using the changeset viewer.