mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-18 16:49:18 +03:00
Improve the make target validation
This commit is contained in:
parent
d3c4eb7363
commit
05c742df09
28
Makefile
28
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user