summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile28
1 files changed, 8 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 332108656..d54bfd409 100644
--- a/Makefile
+++ b/Makefile
@@ -114,29 +114,17 @@ ifeq ($(TARGET),)
TARGET := gtk
endif
-SUBTARGET =
-RESOURCES =
+# valid values for the TARGET
+VLDTARGET := riscos gtk beos amiga amigaos3 framebuffer windows atari cocoa monkey
-ifneq ($(TARGET),riscos)
- ifneq ($(TARGET),gtk)
- ifneq ($(TARGET),beos)
- ifneq ($(findstring amiga,$(TARGET)),amiga)
- ifneq ($(TARGET),framebuffer)
- ifneq ($(TARGET),windows)
- ifneq ($(TARGET),atari)
- ifneq ($(TARGET),cocoa)
- ifneq ($(TARGET),monkey)
- $(error Unknown TARGET "$(TARGET)", should either be "riscos", "gtk", "beos", "amiga", "framebuffer", "windows", "atari" or "cocoa" or "monkey")
- endif
- endif
- endif
- endif
- endif
- endif
- endif
- endif
+# Check for valid TARGET
+ifeq ($(filter $(VLDTARGET),$(TARGET)),)
+ $(error Unknown TARGET "$(TARGET)", Must be one of $(VLDTARGET))
endif
+SUBTARGET =
+RESOURCES =
+
PERL=perl
MKDIR=mkdir
TOUCH=touch