LINUX.ORG.RU

Ответ на: комментарий от frey

Спасибо. Привык просто что вся нужная документация есть в дистрибутиве.

gogi
() автор топика

Не, ну ребята, это же вообще... Первая ссылка в google по «gnu make assignment»...

satanic-mechanic
()

> читал man make, info make

$ info make
/\?=
/

There is another assignment operator for variables, `?='. This is
called a conditional variable assignment operator, because it only has
an effect if the variable is not yet defined. This statement:

FOO ?= bar

is exactly equivalent to this (*note The `origin' Function: Origin
Function.):

ifeq ($(origin FOO), undefined)
FOO = bar
endif

Note that a variable set to an empty value is still defined, so `?='
will not set that variable.

Eshkin_kot ★★
()
Ответ на: комментарий от gogi

> У меня в squeeze видимо версия древнющая. Нету тут такого.

$ aptitude install make-doc

$ cat /etc/debian_version
squeeze/sid

Eshkin_kot ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.