summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-08-19 20:36:05 +0000
committerRoland McGrath <roland@redhat.com>1993-08-19 20:36:05 +0000
commitcbbf3ee5ef066654a24f5a8c73173feb24c408ce (patch)
treef1775c534f1db561b378ad38dc87e93d58ff2529
parent8171a9ba6ed39f2e305f20091f75249f26e9b5bc (diff)
downloadgunmake-cbbf3ee5ef066654a24f5a8c73173feb24c408ce.tar.gz
Formerly variable.c.~25~
-rw-r--r--variable.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 59811a1..de35602 100644
--- a/variable.c
+++ b/variable.c
@@ -347,11 +347,20 @@ define_automatic_variables ()
{
extern char default_shell[];
register struct variable *v;
- char buf[100];
+ char buf[200];
sprintf (buf, "%u", makelevel);
(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
will provide one if there isn't one there. */
v = define_variable ("SHELL", 5, default_shell, o_default, 0);