aboutsummaryrefslogtreecommitdiff
path: root/build_json.mk
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /build_json.mk
Diffstat (limited to 'build_json.mk')
-rw-r--r--build_json.mk17
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
2ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_5)/keymap.json)","")
3 KEYMAP_JSON := $(MAIN_KEYMAP_PATH_5)/keymap.json
4 KEYMAP_PATH := $(MAIN_KEYMAP_PATH_5)
5else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_4)/keymap.json)","")
6 KEYMAP_JSON := $(MAIN_KEYMAP_PATH_4)/keymap.json
7 KEYMAP_PATH := $(MAIN_KEYMAP_PATH_4)
8else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_3)/keymap.json)","")
9 KEYMAP_JSON := $(MAIN_KEYMAP_PATH_3)/keymap.json
10 KEYMAP_PATH := $(MAIN_KEYMAP_PATH_3)
11else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_2)/keymap.json)","")
12 KEYMAP_JSON := $(MAIN_KEYMAP_PATH_2)/keymap.json
13 KEYMAP_PATH := $(MAIN_KEYMAP_PATH_2)
14else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_1)/keymap.json)","")
15 KEYMAP_JSON := $(MAIN_KEYMAP_PATH_1)/keymap.json
16 KEYMAP_PATH := $(MAIN_KEYMAP_PATH_1)
17endif