summaryrefslogtreecommitdiff
path: root/keyboard/planck/Makefile
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-01-20 00:15:29 -0500
committerJack Humbert <jack.humb@gmail.com>2016-01-20 00:15:29 -0500
commita820533ab770e1919f190c102a091c1060f6302e (patch)
tree51b2a4b7dcbc16ecd8175a06c95490df3acf5264 /keyboard/planck/Makefile
parent2dcdbb8f67b6aad27beb31cda0b21a4a34ce5903 (diff)
keymap.c changes, disable grep stuff
Diffstat (limited to 'keyboard/planck/Makefile')
-rw-r--r--keyboard/planck/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile
index ff68ea0fb3..16d462b699 100644
--- a/keyboard/planck/Makefile
+++ b/keyboard/planck/Makefile
@@ -53,12 +53,16 @@ TARGET_DIR = .
SRC = planck.c \
backlight.c
+ifdef keymap
+ KEYMAP = $(keymap)
+endif
+
ifdef KEYMAP
ifneq ("$(wildcard keymaps/$(KEYMAP).c)","")
KEYMAP_FILE = keymaps/$(KEYMAP).c
else
-ifneq ("$(wildcard keymaps/$(KEYMAP)/default.c)","")
- KEYMAP_FILE = keymaps/$(KEYMAP)/default.c
+ifneq ("$(wildcard keymaps/$(KEYMAP)/keymap.c)","")
+ KEYMAP_FILE = keymaps/$(KEYMAP)/keymap.c
else
$(error Keymap file does not exist)
endif
@@ -67,7 +71,7 @@ else
ifneq ("$(wildcard keymaps/default.c)","")
KEYMAP_FILE = keymaps/default.c
else
- KEYMAP_FILE = keymaps/default/default.c
+ KEYMAP_FILE = keymaps/default/keymap.c
endif
endif
SRC := $(KEYMAP_FILE) $(SRC)