criu/scripts/nmk
Radostin Stoyanov 59930e5afb tools.mk: Define CC if not set to 'default'
FOO ?= bar

is equivalent to

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

However, when CC is not set its value is 'default' rather than
'undefined'.

>From [1]:

'undefined': if variable was never defined.

'default': if variable has a default definition, as is usual with CC
and so on. See Variables Used by Implicit Rules. Note that if you have
redefined a default variable, the origin function will return the
origin of the later definition.

[1] https://www.gnu.org/software/make/manual/make.html

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
2019-04-20 20:25:26 -07:00
..
Documentation Documentation: Allow to use asciidoctor for formatting man pages 2019-04-20 20:25:26 -07:00
scripts tools.mk: Define CC if not set to 'default' 2019-04-20 20:25:26 -07:00
.gitignore build: nmk -- Initial import 2016-02-15 15:32:20 +03:00
Makefile nmk: Don't redefine MAKEFLAGS 2018-05-12 11:45:33 +03:00
README.md build: nmk -- Initial import 2016-02-15 15:32:20 +03:00

NMK

NMK stands for NetMaKe -- is a very simple framework for make build system. Most ideas are taken from the Linux kernel kbuild system.