Commit 15caca2
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>1 parent f42615b commit 15caca2
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
572 | 576 | | |
573 | 577 | | |
574 | 578 | | |
| |||
2347 | 2351 | | |
2348 | 2352 | | |
2349 | 2353 | | |
2350 | | - | |
| 2354 | + | |
2351 | 2355 | | |
2352 | 2356 | | |
2353 | | - | |
| 2357 | + | |
2354 | 2358 | | |
2355 | 2359 | | |
2356 | 2360 | | |
| |||
2364 | 2368 | | |
2365 | 2369 | | |
2366 | 2370 | | |
2367 | | - | |
| 2371 | + | |
2368 | 2372 | | |
2369 | 2373 | | |
2370 | 2374 | | |
| |||
2688 | 2692 | | |
2689 | 2693 | | |
2690 | 2694 | | |
2691 | | - | |
| 2695 | + | |
2692 | 2696 | | |
2693 | 2697 | | |
2694 | 2698 | | |
| |||
0 commit comments