Changeset 2239 for trunk/kBuild/footer.kmk
- Timestamp:
- Jan 9, 2009, 4:36:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r2238 r2239 1401 1401 $(target)) 1402 1402 local outbase := $(call TARGET_BASE,$(name),$(target)) 1403 ifndef PATH_$(target) 1404 PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))) 1405 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase)))) 1406 $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase)))) 1407 endif 1403 $(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase))) 1404 PATH_$(target) := $($(target)_0_OUTDIR) 1408 1405 ## @todo fix the fun at the last line (AR != LIB => mess). 1409 1406 local suff := $(firstword \ … … 1570 1567 # PATH_* 1571 1568 local outbase := $(call TARGET_BASE,$(target),$(target)) 1572 PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))) 1569 $(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase))) 1570 PATH_$(target) := $($(target)_0_OUTDIR) 1573 1571 endef # def_pass1_install 1574 1572 $(eval-opt-var def_pass1_install) … … 2321 2319 $(target)) 2322 2320 local outbase := $(call TARGET_BASE,$(name),$(target)) 2323 ifndef PATH_$(target) 2324 PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))) 2325 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase)))) 2326 $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase)))) 2327 endif 2321 $(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase))) 2322 PATH_$(target) := $($(target)_0_OUTDIR) 2328 2323 local suff := $(firstword\ 2329 2324 $($(target)_LIBSUFF.$(bld_trg).$(bld_trg_arch))\ … … 2575 2570 $(target)) 2576 2571 local outbase := $(call TARGET_BASE,$(name),$(target)) 2577 ifndef PATH_$(target) 2578 PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))) 2579 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase)))) 2580 $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase)))) 2581 endif 2572 $(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase))) 2573 PATH_$(target) := $($(target)_0_OUTDIR) 2582 2574 local suff := $(firstword \ 2583 2575 $($(target)_$(EXT)SUFF.$(bld_trg).$(bld_trg_arch))\ … … 3410 3402 INSTARGET_DIRS_$(target) := 3411 3403 local outbase := $(call TARGET_BASE,$(target),$(target)) 3412 ifndef PATH_$(target) 3413 PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))) 3414 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase)))) 3415 $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase)))) 3416 endif 3404 $(target)_0_OUTDIR := $(patsubst %/,%,$(dir $(outbase))) 3405 PATH_$(target) := $($(target)_0_OUTDIR) 3417 3406 3418 3407 local clean_files := $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type)) … … 3439 3428 _INSTALLS_DIRS += $(INSTARGET_DIRS_$(target)) 3440 3429 _CLEAN_FILES += $(clean_files) 3441 _DIRS += $( PATH_$(target)) $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))3430 _DIRS += $($(target)_0_OUTDIR) $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type)) 3442 3431 endef # def_install 3443 3432 $(eval-opt-var def_install) … … 3774 3763 @$(foreach target, $(_ALL_TARGETS),\ 3775 3764 @$(ECHO) "target: $(target)" $(NLTAB)\ 3776 @$(ECHO) " PATH_$(target)=$(PATH_$(target))" $(NLTAB)\3765 @$(ECHO) " $(target)_0_OUTDIR=$($(target)_0_OUTDIR)" $(NLTAB)\ 3777 3766 @$(ECHO) " $(target)_1_TARGET=$($(target)_1_TARGET)" $(NLTAB)\ 3778 3767 @$(ECHO) " INSTARGET_$(target)=$(INSTARGET_$(target))" $(NLTAB)\
Note:
See TracChangeset
for help on using the changeset viewer.