summaryrefslogtreecommitdiff
path: root/keyboard/hhkb/Makefile
diff options
context:
space:
mode:
authorJun Wako <wakojun@gmail.com>2015-01-11 01:54:17 +0900
committerJun Wako <wakojun@gmail.com>2015-01-11 01:54:17 +0900
commit10a6b2c7d8bc9c5d2657acdeefa1102be5035280 (patch)
tree162e1024f3660d9e214fe16eb19c67e2b2377c67 /keyboard/hhkb/Makefile
parent3dbb762dcc5b1d340cb145fc4ca60748ccf7c890 (diff)
hhkb: Add Makefile.jp for HHKB JP
Diffstat (limited to 'keyboard/hhkb/Makefile')
-rw-r--r--keyboard/hhkb/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboard/hhkb/Makefile b/keyboard/hhkb/Makefile
index 5cf02d194e..dc5c06a948 100644
--- a/keyboard/hhkb/Makefile
+++ b/keyboard/hhkb/Makefile
@@ -121,11 +121,6 @@ NKRO_ENABLE = yes # USB Nkey Rollover
#HHKB_JP = yes # HHKB JP support
-ifdef HHKB_JP
- OPT_DEFS += -DHHKB_JP
-endif
-
-
#
# Keymap file
#
@@ -140,6 +135,11 @@ else
endif
+ifneq (, $(or $(findstring keymap_jp.c, $(SRC)), $(findstring yes, $(HHKB_JP))))
+ OPT_DEFS += -DHHKB_JP
+endif
+
+
# Search Path
VPATH += $(TARGET_DIR)
VPATH += $(TOP_DIR)