mirror of
https://github.com/mirror/make.git
synced 2025-04-17 06:41:04 +08:00
Force version printing whenever we print the database.
This commit is contained in:
parent
a674abe702
commit
ecf307bb0b
@ -6,6 +6,7 @@
|
||||
in the initial batch of flags. Do not allow any flags with
|
||||
options in that batch. If there are only non-simple flags MAKEFLAGS
|
||||
begins with ' '.
|
||||
(print_data_base): Print the version. Fixes part of Savannah #35336.
|
||||
|
||||
* read.c (eval_buffer): Initialize lineno.
|
||||
|
||||
|
8
NEWS
8
NEWS
@ -74,6 +74,14 @@ http://sv.gnu.org/bugs/index.php?group=make&report_id=111&fix_release_id=101&set
|
||||
GNU make-specific flags to allow your makefile to be portable to other
|
||||
versions of make. GNU make never sets or modifies GNUMAKEFLAGS.
|
||||
|
||||
* Behavior of MAKEFLAGS and MFLAGS is more rigorously defined. All simple
|
||||
flags are grouped together in the first word of MAKEFLAGS. No options that
|
||||
accept arguments appear there. If no simple flags are present MAKEFLAGS
|
||||
begins with a space. MFLAGS never begins with "- ".
|
||||
|
||||
* Setting the -r and -R options in MAKEFLAGS inside a makefile now works as
|
||||
expected, removing all built-in rules and variables, respectively.
|
||||
|
||||
* On failure, the makefile name and linenumber of the recipe that failed are
|
||||
shown.
|
||||
|
||||
|
7
main.c
7
main.c
@ -1390,7 +1390,7 @@ main (int argc, char **argv, char **envp)
|
||||
always_make_flag = always_make_set && (restarts == 0);
|
||||
|
||||
/* Print version information. */
|
||||
if (print_version_flag || print_data_base_flag || ISDB (DB_BASIC))
|
||||
if (print_version_flag || ISDB (DB_BASIC))
|
||||
{
|
||||
print_version ();
|
||||
|
||||
@ -3222,9 +3222,10 @@ print_version (void)
|
||||
static void
|
||||
print_data_base ()
|
||||
{
|
||||
time_t when;
|
||||
time_t when = time ((time_t *) 0);
|
||||
|
||||
print_version ();
|
||||
|
||||
when = time ((time_t *) 0);
|
||||
printf (_("\n# Make data base, printed on %s"), ctime (&when));
|
||||
|
||||
print_variable_data_base ();
|
||||
|
Loading…
Reference in New Issue
Block a user