Changeset 472
- Timestamp:
- Jul 15, 2006, 6:33:50 AM (19 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r460 r472 147 147 # @remark There are two major hacks here: 148 148 # 1. Source files in the output directory are translated into a gen/ subdir. 149 # 2. Catch anyone specifying $(PATH_ CURRENT)/sourcefile.c.149 # 2. Catch anyone specifying $(PATH_SUB_CURRENT)/sourcefile.c. 150 150 _OBJECT_BASE = $(PATH_TARGET)/$(2)/$(call no-root-slash,$(call no-drive,$(basename \ 151 $(patsubst $(PATH_ROOT)/%,%,$(patsubst $(PATH_ CURRENT)/%,%,$(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1)))))))151 $(patsubst $(PATH_ROOT)/%,%,$(patsubst $(PATH_SUB_CURRENT)/%,%,$(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1))))))) 152 152 153 153 ## Figure out where to put object files. … … 457 457 $($(target)_$(source)_DEPORD_) 458 458 $(call MSG_L1,Creating $$@) 459 $(RM) -f $(dep) $(o ut) $($(target)_$(source)_OUTPUT_)459 $(RM) -f $(dep) $(obj) $($(target)_$(source)_OUTPUT_) 460 460 $(custom_pre) 461 461 -
trunk/kBuild/header.kmk
r464 r472 248 248 # 249 249 ifeq ($(filter abspath,$(KMK_FEATURES)),abspath) 250 250 251 PATH_CURRENT := $(abspath $(CURDIR)) 252 ifneq ($(strip $(SUB_DEPTH)),) 253 PATH_SUB_CURRENT := $(abspath $(PATH_CURRENT)/$(SUB_DEPTH)) 254 else 255 PATH_SUB_CURRENT := $(PATH_CURRENT) 256 endif 251 257 PATH_ROOT := $(abspath $(PATH_CURRENT)/$(DEPTH)) 252 258 … … 254 260 255 261 PATH_CURRENT := $(CURDIR) 256 # Get the real root path. 262 PATH_SUB_CURRENT := $(PATH_CURRENT) 263 ifneq ($(strip $(SUB_DEPTH)),) 264 ifneq ($(SUB_DEPTH),.) 265 $(foreach d,$(subst /, ,$(SUB_DEPTH)), $(eval PATH_SUB_CURRENT := $(patsubst %/,%,$(dir $(PATH_SUB_CURRENT)))) ) 266 endif 267 endif 257 268 PATH_ROOT := $(PATH_CURRENT) 258 269 ifneq ($(DEPTH),.) … … 261 272 262 273 endif 274 263 275 # Subdirectory relative to the root. 264 276 ifneq ($(PATH_ROOT),$(PATH_CURRENT)) 265 CURSUBDIR := $(patsubst $(PATH_ROOT)/%,%,$(PATH_ CURRENT))277 CURSUBDIR := $(patsubst $(PATH_ROOT)/%,%,$(PATH_SUB_CURRENT)) 266 278 else 267 279 CURSUBDIR := .
Note:
See TracChangeset
for help on using the changeset viewer.