VirtualBox

Changeset 2510 in kBuild


Ignore:
Timestamp:
Jul 24, 2011 7:56:44 PM (13 years ago)
Author:
bird
Message:

footer.kmk: Link _INST/_STAGE props should be treated as filenames when no trailing slash is present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2509 r2510  
    13371337        definst )
    13381338 $(target)_1_STAGE := $(stage)
    1339  $(target)_1_STAGE_TARGET := $(addprefix $(PATH_STAGE)/,$(addsuffix $(notdir $(out)),$(stage)))
     1339 if "$(substr $(stage),-1,1)" == "/" || "$(stage)" == ""
     1340  $(target)_1_STAGE_TARGET := $(addprefix $(PATH_STAGE)/,$(addsuffix $(notdir $(out)),$(stage)))
     1341 else
     1342  $(target)_1_STAGE_TARGET := $(addprefix $(PATH_STAGE)/,$(stage))
     1343 endif
    13401344else
    13411345 $(target)_1_STAGE :=
     
    13551359        definst )
    13561360 $(target)_1_INST := $(inst)
    1357  $(target)_1_INST_TARGET := $(addprefix $(PATH_INS)/,$(addsuffix $(notdir $(out)),$(stage)))
     1361 if "$(substr $(inst),-1,1)" == "/" || "$(inst)" == ""
     1362  $(target)_1_INST_TARGET := $(addprefix $(PATH_INS)/,$(addsuffix $(notdir $(out)),$(inst)))
     1363 else
     1364  $(target)_1_INST_TARGET := $(addprefix $(PATH_INS)/,$(inst))
     1365 endif
    13581366else
    13591367 $(target)_1_INST :=
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette