Ignore:
Timestamp:
Jan 9, 2009, 4:36:01 AM (17 years ago)
Author:
bird
Message:

footer.kmk,subheader.kmk,subfooter.kmk,qt3.kmk,qt4.kmk: PATH_$(target) -> $(target)_0_OUTDIR, old variable is still valid for a while. References #57.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2238 r2239  
    14011401        $(target))
    14021402local 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)))
     1404PATH_$(target)    := $($(target)_0_OUTDIR)
    14081405## @todo fix the fun at the last line (AR != LIB => mess).
    14091406local suff := $(firstword \
     
    15701567# PATH_*
    15711568local outbase     := $(call TARGET_BASE,$(target),$(target))
    1572 PATH_$(target)    := $(patsubst %/,%,$(dir $(outbase)))
     1569$(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase)))
     1570PATH_$(target)    := $($(target)_0_OUTDIR)
    15731571endef # def_pass1_install
    15741572$(eval-opt-var def_pass1_install)
     
    23212319        $(target))
    23222320local 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)))
     2322PATH_$(target)    := $($(target)_0_OUTDIR)
    23282323local suff        := $(firstword\
    23292324        $($(target)_LIBSUFF.$(bld_trg).$(bld_trg_arch))\
     
    25752570        $(target))
    25762571local 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)))
     2573PATH_$(target)    := $($(target)_0_OUTDIR)
    25822574local suff := $(firstword \
    25832575        $($(target)_$(EXT)SUFF.$(bld_trg).$(bld_trg_arch))\
     
    34103402INSTARGET_DIRS_$(target) :=
    34113403local 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)))
     3405PATH_$(target) := $($(target)_0_OUTDIR)
    34173406
    34183407local 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))
     
    34393428_INSTALLS_DIRS += $(INSTARGET_DIRS_$(target))
    34403429_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))
    34423431endef # def_install
    34433432$(eval-opt-var def_install)
     
    37743763        @$(foreach target, $(_ALL_TARGETS),\
    37753764        @$(ECHO) "target: $(target)" $(NLTAB)\
    3776         @$(ECHO) "  PATH_$(target)=$(PATH_$(target))" $(NLTAB)\
     3765        @$(ECHO) "  $(target)_0_OUTDIR=$($(target)_0_OUTDIR)" $(NLTAB)\
    37773766        @$(ECHO) "  $(target)_1_TARGET=$($(target)_1_TARGET)" $(NLTAB)\
    37783767        @$(ECHO) "  INSTARGET_$(target)=$(INSTARGET_$(target))" $(NLTAB)\
Note: See TracChangeset for help on using the changeset viewer.