1. 12 2月, 2013 1 次提交
  2. 04 1月, 2013 1 次提交
    • J
      Makefile: hoist uname autodetection to config.mak.uname · e1b6dbb5
      Jeff King 提交于
      Our Makefile first sets up some sane per-platform defaults
      by looking at "uname", then modifies that according to the
      results of autoconf (if any), then modifies that according
      to the user's wishes in config.mak.
      
      For sub-Makefiles like Documentation/Makefile, the latter
      two are available, but the uname defaults are available only
      to the main Makefile. This hasn't been a problem so far,
      because the sub-Makefiles do not rely on any of those
      automatic settings to do their work.
      
      This patch puts the uname magic into its own file so it can
      be reused in other Makefiles, opening up the possibility of
      new knobs.
      
      Note that we leave one reference to uname in the top-level
      Makefile: if we are on Darwin, we must check the NO_FINK and
      NO_DARWIN_PORTS settings. But because we are combining uname
      settings with user-options, we must do so after all of the
      config is loaded. This is acceptable, as the resulting
      conditionals are about setting variables specific to the
      top-level Makefile (and if that ever changes, we can hoist
      them into a separate post-config include, too).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e1b6dbb5