Create a new variable MAKE_HOST providing the host architecture.
authorPaul Smith <psmith@gnu.org>
Mon, 27 May 2013 17:52:08 +0000 (13:52 -0400)
committerPaul Smith <psmith@gnu.org>
Mon, 27 May 2013 17:52:08 +0000 (13:52 -0400)
ChangeLog
NEWS
variable.c

index e4e4b2c50df562325f39df300b638d30957af6e1..0cb528875a01d4c649edc2ed20ae0bfa53b26d27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-27  Paul Smith  <psmith@gnu.org>
+
+       * variable.c (define_automatic_variables): Create a new variable
+       MAKE_HOST.
+
 2013-05-27  Hartmut Becker  <becker.ismaning@freenet.de>
 
        * function.c (func_shell_base) [VMS]: Support VMS.
diff --git a/NEWS b/NEWS
index 92f9f8fbe31eeae9eb9fd13a8a767d6e48735067..e1785e1374a2b6768366020ebe1233dbbfe78ae0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,10 @@ 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.
 
+* New variable: `MAKE_HOST' gives the name of the host architecture
+  make was compiled for.  This is the same value you see after 'Built for'
+  when running 'make --version'.
+
 * 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
index 0cf8bac4eb0c78bc048450b25a7cbdc63be2f52c..f76b02bf562687f9aa6ad883a514a1c0305f634d 100644 (file)
@@ -803,6 +803,7 @@ define_automatic_variables (void)
            (remote_description == 0 || remote_description[0] == '\0')
            ? "" : remote_description);
   define_variable_cname ("MAKE_VERSION", buf, o_default, 0);
+  define_variable_cname ("MAKE_HOST", make_host, o_default, 0);
 
 #ifdef  __MSDOS__
   /* Allow to specify a special shell just for Make,