aboutsummaryrefslogtreecommitdiffstats
path: root/make/target.mk
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-11-15 12:10:42 +0100
committerMicael Karlberg <[email protected]>2011-11-15 12:10:42 +0100
commitba8a4e80193d3b1e20b5d43f6176ed439ad1c4ae (patch)
tree9b6a70d0cf7afae5b5668930f32bc1877133ba6a /make/target.mk
parent451f76fca7a777ea1ffeb4da84bbb397a9743174 (diff)
parente95b8b3fa7f9afac4c91eb41017ef094add43124 (diff)
downloadotp-ba8a4e80193d3b1e20b5d43f6176ed439ad1c4ae.tar.gz
otp-ba8a4e80193d3b1e20b5d43f6176ed439ad1c4ae.tar.bz2
otp-ba8a4e80193d3b1e20b5d43f6176ed439ad1c4ae.zip
Merge branch 'master' of super:otp
Diffstat (limited to 'make/target.mk')
-rw-r--r--make/target.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/make/target.mk b/make/target.mk
index 06e895df90..a6493e09a5 100644
--- a/make/target.mk
+++ b/make/target.mk
@@ -1,3 +1,24 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 1998-2011. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+
+# Ensure that the make variable TARGET is set
+#
+
ifeq ($(OVERRIDE_TARGET),)
ifeq ($(TARGET),)
@@ -31,3 +52,18 @@ endif
endif
+ifneq ($(TARGET),)
+ifneq ($(TARGET),win32)
+ifneq ($(TARGET),vxworks)
+override TARGET := $(shell $(ERL_TOP)/erts/autoconf/config.sub $(TARGET))
+else
+endif
+else
+endif
+else
+endif
+
+ifeq ($(TARGET),)
+$(error Neither TARGET nor OVERRIDE_TARGET can be determined!)
+else
+endif