diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /build_json.mk |
Diffstat (limited to 'build_json.mk')
-rw-r--r-- | build_json.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build_json.mk b/build_json.mk new file mode 100644 index 000000000..0c034eb2a --- /dev/null +++ b/build_json.mk | |||
@@ -0,0 +1,17 @@ | |||
1 | # Look for a json keymap file | ||
2 | ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_5)/keymap.json)","") | ||
3 | KEYMAP_JSON := $(MAIN_KEYMAP_PATH_5)/keymap.json | ||
4 | KEYMAP_PATH := $(MAIN_KEYMAP_PATH_5) | ||
5 | else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_4)/keymap.json)","") | ||
6 | KEYMAP_JSON := $(MAIN_KEYMAP_PATH_4)/keymap.json | ||
7 | KEYMAP_PATH := $(MAIN_KEYMAP_PATH_4) | ||
8 | else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_3)/keymap.json)","") | ||
9 | KEYMAP_JSON := $(MAIN_KEYMAP_PATH_3)/keymap.json | ||
10 | KEYMAP_PATH := $(MAIN_KEYMAP_PATH_3) | ||
11 | else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_2)/keymap.json)","") | ||
12 | KEYMAP_JSON := $(MAIN_KEYMAP_PATH_2)/keymap.json | ||
13 | KEYMAP_PATH := $(MAIN_KEYMAP_PATH_2) | ||
14 | else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_1)/keymap.json)","") | ||
15 | KEYMAP_JSON := $(MAIN_KEYMAP_PATH_1)/keymap.json | ||
16 | KEYMAP_PATH := $(MAIN_KEYMAP_PATH_1) | ||
17 | endif | ||