summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-27 13:52:08 -0400
committerPaul Smith <psmith@gnu.org>2013-05-27 13:52:08 -0400
commit6926227dfc1dc6b4a62f0aa178ac8b633eecb856 (patch)
tree41b148d4677090cf205ad7da640209ee38694ff0
parentfcccad19030f421315a145beda45bc4aa68ddab7 (diff)
downloadmake-6926227dfc1dc6b4a62f0aa178ac8b633eecb856.tar.gz
Create a new variable MAKE_HOST providing the host architecture.
-rw-r--r--ChangeLog5
-rw-r--r--NEWS4
-rw-r--r--variable.c1
3 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e4e4b2c5..0cb52887 100644
--- 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 92f9f8fb..e1785e13 100644
--- 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
diff --git a/variable.c b/variable.c
index 0cf8bac4..f76b02bf 100644
--- a/variable.c
+++ b/variable.c
@@ -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,