From: Roland McGrath Date: Thu, 19 Aug 1993 20:36:05 +0000 (+0000) Subject: Formerly variable.c.~25~ X-Git-Tag: 3.70.2~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbbf3ee5ef066654a24f5a8c73173feb24c408ce;p=thirdparty%2Fmake.git Formerly variable.c.~25~ --- diff --git a/variable.c b/variable.c index 59811a1c..de356023 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);