Spec-Zone.ru › GNU Make

How Variables Get Their Values

Variables can get values in several different ways:

  • You can specify an overriding value when you run make. See Overriding Variables.
  • You can specify a value in the makefile, either with an assignment (see Setting Variables) or with a verbatim definition (see Defining Multi-Line Variables).
  • You can specify a short-lived value with the let function (see Let Function) or with the foreach function (see Foreach Function).
  • Variables in the environment become make variables. See Variables from the Environment.
  • Several automatic variables are given new values for each rule. Each of these has a single conventional use. See Automatic Variables.
  • Several variables have constant initial values. See Variables Used by Implicit Rules.

Copyright © 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
https://www.gnu.org/software/make/manual/html_node/Values.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API