Commit aeb59ee
committed
Assume the default build target is 'all'
'all' is a well-known name
The default target must be explicitly named on the dry-run command line,
because of [Remaking Makefiles](https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html)
rule of GNU Make. In order to avoid remaking makefiles during a dry-run,
the makefile must also be given as an explicit target.
If the makefile were given as the only target, the dry-run would not
mean 'dry-run the default target', but 'dry-run nothing'. Thus, if the
makefile must be given as a target, the default target must be made
explicit, and thus is must be defined.
Also, previously 'all' was added to the make invokation for listing
targets. This would prevent the .DEFAULT_GOAL to be correctly set as the
Makefile declared, and instead be set to the value given on the command
line. An explicit target is no longer given on the --print-data-base
invocation, so the output .DEFAULT_GOAL will be the genuine default goal.
This commit makes currentTarget always defined, with the default value
'all'; this is a reasonable, well-known default.1 parent 7f27375 commit aeb59ee
3 files changed
Lines changed: 11 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
940 | | - | |
941 | | - | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
942 | 944 | | |
943 | 945 | | |
944 | 946 | | |
945 | 947 | | |
| 948 | + | |
946 | 949 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
| 950 | + | |
952 | 951 | | |
953 | | - | |
954 | 952 | | |
955 | | - | |
956 | 953 | | |
| 954 | + | |
957 | 955 | | |
958 | 956 | | |
959 | 957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | 449 | | |
461 | 450 | | |
462 | 451 | | |
| |||
492 | 481 | | |
493 | 482 | | |
494 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
495 | 487 | | |
496 | 488 | | |
497 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
| |||
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
176 | | - | |
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
| |||
250 | 247 | | |
251 | 248 | | |
252 | 249 | | |
253 | | - | |
254 | 250 | | |
255 | 251 | | |
256 | 252 | | |
| |||
312 | 308 | | |
313 | 309 | | |
314 | 310 | | |
315 | | - | |
316 | 311 | | |
317 | 312 | | |
318 | 313 | | |
| |||
374 | 369 | | |
375 | 370 | | |
376 | 371 | | |
377 | | - | |
378 | 372 | | |
379 | 373 | | |
380 | 374 | | |
| |||
434 | 428 | | |
435 | 429 | | |
436 | 430 | | |
437 | | - | |
438 | 431 | | |
439 | 432 | | |
440 | 433 | | |
| |||
476 | 469 | | |
477 | 470 | | |
478 | 471 | | |
479 | | - | |
480 | 472 | | |
481 | 473 | | |
482 | 474 | | |
| |||
0 commit comments