VirtualBox

Changeset 16460 in vbox


Ignore:
Timestamp:
Feb 2, 2009 1:34:39 PM (16 years ago)
Author:
vboxsync
Message:

Config.kmk: Rewrote r42325 as you need to be more forceful when changing variables from the command line and because we wish to avoid unncessary expansion of wildcard function calls. Dropped the Config.kmkconf and Config.kmklocal legacy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r16453 r16460  
    601601# and to provide defaults for the settings below this point.
    602602#
    603 AUTOCFG ?= $(wildcard $(PATH_ROOT)/AutoConfig.kmk)
    604 ifeq ($(AUTOCFG),)
    605  # deprecated name. to be removed.
    606  AUTOCFG := $(wildcard $(PATH_ROOT)/Config.kmkconf)
    607  ifneq ($(AUTOCFG),)
    608   $(warning Config.kmkconf has been renamed. Please re-run configure.)
    609  endif
     603ifndef AUTOCFG
     604 AUTOCFG := $(wildcard $(PATH_ROOT)/AutoConfig.kmk)
    610605endif
    611606ifneq ($(AUTOCFG),)
     
    613608endif
    614609
    615 LOCALCFG ?= $(wildcard $(PATH_ROOT)/LocalConfig.kmk)
    616 ifeq ($(LOCALCFG),)
    617  # deprecated name. to be removed.
    618  LOCALCFG := $(wildcard $(PATH_ROOT)/Config.kmklocal)
     610ifndef LOCALCFG
     611 LOCALCFG := $(wildcard $(PATH_ROOT)/LocalConfig.kmk)
    619612 ifneq ($(LOCALCFG),)
    620   $(warning Please rename your Config.kmklocal to LocalConfig.kmk.)
    621  endif
    622 endif
    623 # We want to be able to pass an alternative location for LocalConfig.kmk
    624 # without actually requiring it to exist.
    625 ifeq ($(wildcard $(LOCALCFG)),)
    626  LOCALCFG=
    627 endif
    628 ifneq ($(LOCALCFG),)
    629  include $(LOCALCFG)
     613  include $(LOCALCFG)
     614 endif
     615else
     616 # Ignore it if it doesn't exist.
     617 if exists "$(LOCALCFG)"
     618  include $(LOCALCFG)
     619 else
     620  $(warning LOCALCFG='$(LOCALCFG)' does not exists)
     621  override LOCALCFG :=
     622 endif
    630623endif
    631624
     
    36263619# Legacy.
    36273620#
     3621## @todo try remove this.
    36283622ifneq ($(LOCALCFG),)
    36293623 include $(LOCALCFG)
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