]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: improve SPARSE_FLAGS customisation
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Tue, 5 Feb 2019 02:27:48 +0000 (02:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Feb 2019 18:07:26 +0000 (10:07 -0800)
commit15caca28da0f634200b80b98228a5dc0646afbd6
tree84955a5f2cc0442633f0c369c091deeaf348bb33
parentf42615bef172252d9a1bf37a65750b134715a0ab
Makefile: improve SPARSE_FLAGS customisation

In order to enable greater user customisation of the SPARSE_FLAGS
variable, we introduce a new SP_EXTRA_FLAGS variable to use for
target specific settings. Without using the new variable, setting
the SPARSE_FLAGS on the 'make' command-line would also override the
value set by the target-specific rules in the Makefile (effectively
making them useless). Also, this enables the SP_EXTRA_FLAGS to be
used in the future for any other internal customisations, such as
for some platform specific values.

In addition, we initialise the SPARSE_FLAGS to the default (empty)
value using a conditional assignment (?=). This allows SPARSE_FLAGS
to be set from the environment as well as from the command-line.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile