mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-29 08:09:02 +00:00
Formerly variable.c.~25~
This commit is contained in:
parent
8171a9ba6e
commit
cbbf3ee5ef
1 changed files with 10 additions and 1 deletions
11
variable.c
11
variable.c
|
@ -347,11 +347,20 @@ define_automatic_variables ()
|
||||||
{
|
{
|
||||||
extern char default_shell[];
|
extern char default_shell[];
|
||||||
register struct variable *v;
|
register struct variable *v;
|
||||||
char buf[100];
|
char buf[200];
|
||||||
|
|
||||||
sprintf (buf, "%u", makelevel);
|
sprintf (buf, "%u", makelevel);
|
||||||
(void) define_variable ("MAKELEVEL", 9, buf, o_env, 0);
|
(void) define_variable ("MAKELEVEL", 9, buf, o_env, 0);
|
||||||
|
|
||||||
|
sprintf (buf, "%s%s%s",
|
||||||
|
version_string,
|
||||||
|
(remote_description == 0 || remote_description[0] == '\0')
|
||||||
|
? "" : "-",
|
||||||
|
(remote_description == 0 || remote_description[0] == '\0')
|
||||||
|
? "" : remote_description);
|
||||||
|
(void) define_variable ("MAKE_VERSION", 12, buf, o_default, 0);
|
||||||
|
|
||||||
|
|
||||||
/* This won't override any definition, but it
|
/* This won't override any definition, but it
|
||||||
will provide one if there isn't one there. */
|
will provide one if there isn't one there. */
|
||||||
v = define_variable ("SHELL", 5, default_shell, o_default, 0);
|
v = define_variable ("SHELL", 5, default_shell, o_default, 0);
|
||||||
|
|
Loading…
Reference in a new issue