Ignore:
Timestamp:
Jul 22, 2011, 9:49:47 AM (14 years ago)
Author:
bird
Message:

footer.kmk,header.kmk: Fixed multile install/staging destinations for link targets (busted by recent changes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r2485 r2488  
    742742# @param        $1              the path
    743743no-root-slash = $(patsubst /%,%,$(1))
     744
     745##
     746# Similar to firstword, except it returns the value of first defined variable.
     747# @param        $1              list of variables to probe.
     748define FIRST-DEFINED-VAR
     749 if "$1" != ""
     750  local var := $(word 1,$1)
     751  ifdef $(var)
     752   local .RETURN := $(strip $($(var)))
     753  else
     754   local .RETURN := $(evalcall FIRST-DEFINED-VAR, $(wordlist 2,32,$1))
     755  endif
     756 else
     757  local .RETURN :=
     758 endif
     759endef
    744760
    745761## Figure out where to put object files.
Note: See TracChangeset for help on using the changeset viewer.