Improve the make target validation

This commit is contained in:
Vincent Sanders 2015-04-06 00:16:39 +01:00
parent d3c4eb7363
commit 05c742df09
1 changed files with 8 additions and 20 deletions

View File

@ -114,29 +114,17 @@ ifeq ($(TARGET),)
TARGET := gtk
endif
# valid values for the TARGET
VLDTARGET := riscos gtk beos amiga amigaos3 framebuffer windows atari cocoa monkey
# Check for valid TARGET
ifeq ($(filter $(VLDTARGET),$(TARGET)),)
$(error Unknown TARGET "$(TARGET)", Must be one of $(VLDTARGET))
endif
SUBTARGET =
RESOURCES =
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
endif
PERL=perl
MKDIR=mkdir
TOUCH=touch