forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Compilation warning if both
keymap.json
and keymap.c
ex…
…ist (qmk#19939) Co-authored-by: Nick Brassel <[email protected]>
- Loading branch information
1 parent
144783c
commit 69fbe82
Showing
3 changed files
with
43 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Look for a json keymap file | ||
ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_5)/keymap.json)","") | ||
KEYMAP_JSON := $(MAIN_KEYMAP_PATH_5)/keymap.json | ||
KEYMAP_PATH := $(MAIN_KEYMAP_PATH_5) | ||
KEYMAP_JSON_PATH := $(MAIN_KEYMAP_PATH_5) | ||
else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_4)/keymap.json)","") | ||
KEYMAP_JSON := $(MAIN_KEYMAP_PATH_4)/keymap.json | ||
KEYMAP_PATH := $(MAIN_KEYMAP_PATH_4) | ||
KEYMAP_JSON_PATH := $(MAIN_KEYMAP_PATH_4) | ||
else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_3)/keymap.json)","") | ||
KEYMAP_JSON := $(MAIN_KEYMAP_PATH_3)/keymap.json | ||
KEYMAP_PATH := $(MAIN_KEYMAP_PATH_3) | ||
KEYMAP_JSON_PATH := $(MAIN_KEYMAP_PATH_3) | ||
else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_2)/keymap.json)","") | ||
KEYMAP_JSON := $(MAIN_KEYMAP_PATH_2)/keymap.json | ||
KEYMAP_PATH := $(MAIN_KEYMAP_PATH_2) | ||
KEYMAP_JSON_PATH := $(MAIN_KEYMAP_PATH_2) | ||
else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_1)/keymap.json)","") | ||
KEYMAP_JSON := $(MAIN_KEYMAP_PATH_1)/keymap.json | ||
KEYMAP_PATH := $(MAIN_KEYMAP_PATH_1) | ||
KEYMAP_JSON_PATH := $(MAIN_KEYMAP_PATH_1) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters