added error for keymap file not existing

This commit is contained in:
Jack Humbert 2016-01-16 00:57:35 -05:00
parent dfe7004bc5
commit c9a096dc99

View File

@ -57,7 +57,11 @@ ifdef KEYMAP
ifneq ("$(wildcard keymaps/$(KEYMAP).c)","") ifneq ("$(wildcard keymaps/$(KEYMAP).c)","")
KEYMAP_FILE = keymaps/$(KEYMAP).c KEYMAP_FILE = keymaps/$(KEYMAP).c
else else
ifneq ("$(wildcard keymaps/$(KEYMAP)/default.c)","")
KEYMAP_FILE = keymaps/$(KEYMAP)/default.c KEYMAP_FILE = keymaps/$(KEYMAP)/default.c
else
$(error Keymap file does not exist)
endif
endif endif
else else
ifneq ("$(wildcard keymaps/default.c)","") ifneq ("$(wildcard keymaps/default.c)","")