summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.c b/main.c
index 5a6e924..7af539d 100644
--- a/main.c
+++ b/main.c
@@ -2141,7 +2141,6 @@ handle_non_switch_argument (char *arg, int env)
static void
print_usage (int bad)
{
- extern char *make_host;
const char *const *cpp;
FILE *usageto;
@@ -2700,7 +2699,7 @@ print_version (void)
word "Copyright", so it hardly seems worth it. */
printf ("%sGNU Make %s\n\
-%sCopyright (C) 2002 Free Software Foundation, Inc.\n",
+%sCopyright (C) 2003 Free Software Foundation, Inc.\n",
precede, version_string, precede);
printf (_("%sThis is free software; see the source for copying conditions.\n\
@@ -2708,6 +2707,12 @@ print_version (void)
%sPARTICULAR PURPOSE.\n"),
precede, precede, precede);
+ if (!remote_description || *remote_description == '\0')
+ printf (_("\n%sThis program built for %s\n"), precede, make_host);
+ else
+ printf (_("\n%sThis program built for %s (%s)\n"),
+ precede, make_host, remote_description);
+
printed_version = 1;
/* Flush stdout so the user doesn't have to wait to see the