summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-19 23:22:13 +0800
committerruki <[email protected]>2020-05-19 14:13:20 +0800
commit7d8866f5903db5372bf7c80abb172871290c6160 (patch)
tree867243420c89964417c93d856795a640813a0a6e
parent10ffa242d7f528d0bb8c67f68158ca8f3ed69975 (diff)
improve core/makefile
-rw-r--r--core/makefile4
-rw-r--r--makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/makefile b/core/makefile
index c9aa5a060..46c0d313b 100644
--- a/core/makefile
+++ b/core/makefile
@@ -139,7 +139,7 @@ endif
# #
# host
-HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i linux},linux,))
+HOST :=$(if ${shell uname | egrep -i linux},linux,)
HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i darwin},macosx,))
HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i cygwin},cygwin,))
HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i msys},msys,))
@@ -149,7 +149,7 @@ HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i bsd},bsd,))
HOST :=$(if $(HOST),$(HOST),linux)
# platform
-PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i linux},linux,))
+PLAT :=$(if ${shell uname | egrep -i linux},linux,)
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i darwin},macosx,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i cygwin},cygwin,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i msys},msys,))
diff --git a/makefile b/makefile
index 218f67081..2f10dd82f 100644
--- a/makefile
+++ b/makefile
@@ -23,7 +23,7 @@ TMP_DIR :=$(if $(TMP_DIR),$(TMP_DIR),$(TMPDIR))
endif
# platform
-PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i linux},linux,))
+PLAT :=$(if ${shell uname | egrep -i linux},linux,)
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i darwin},macosx,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i cygwin},cygwin,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i msys},msys,))