commit 2c956cabead8f73af85427f9a22a01ccc51f5f26
parent 25c398382a0f86e2497986ed7a0720e07ab35f9b
Author: falkTX <falktx@falktx.com>
Date: Thu, 16 Sep 2021 14:45:42 +0100
Tweak OS auto-detection, prevent duplicates
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/Makefile.base.mk b/Makefile.base.mk
@@ -29,22 +29,17 @@ ifneq ($(WINDOWS),true)
ifneq (,$(findstring bsd,$(TARGET_MACHINE)))
BSD=true
-endif
-ifneq (,$(findstring haiku,$(TARGET_MACHINE)))
+else ifneq (,$(findstring haiku,$(TARGET_MACHINE)))
HAIKU=true
-endif
-ifneq (,$(findstring linux,$(TARGET_MACHINE)))
+else ifneq (,$(findstring linux,$(TARGET_MACHINE)))
LINUX=true
else ifneq (,$(findstring gnu,$(TARGET_MACHINE)))
HURD=true
-endif
-ifneq (,$(findstring apple,$(TARGET_MACHINE)))
+else ifneq (,$(findstring apple,$(TARGET_MACHINE)))
MACOS=true
-endif
-ifneq (,$(findstring mingw,$(TARGET_MACHINE)))
+else ifneq (,$(findstring mingw,$(TARGET_MACHINE)))
WINDOWS=true
-endif
-ifneq (,$(findstring windows,$(TARGET_MACHINE)))
+else ifneq (,$(findstring windows,$(TARGET_MACHINE)))
WINDOWS=true
endif