summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-08-07 17:54:12 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-08-20 02:56:25 +0200
commit459ddaceda252a7d8614c43f17cd4c8c14712d5f (patch)
tree344abaa5311bc558d4bf8d4c705065a4bc810a17 /Makefile
parent4f20061f6619f632c28518979d17a51674a3f2c9 (diff)
downloadqmk_firmware-459ddaceda252a7d8614c43f17cd4c8c14712d5f.tar.gz
qmk_firmware-459ddaceda252a7d8614c43f17cd4c8c14712d5f.tar.xz
Add backwards compability with makefile variables
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a14642af6..cf0a12f69 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,20 @@ $(info $(ROOT_DIR)/keyboards)
# Only consider folders with makefiles, to prevent errors in case there are extra folders
KEYBOARDS := $(notdir $(patsubst %/Makefile,%,$(wildcard $(ROOT_DIR)/keyboards/*/Makefile)))
+#Compability with the old make variables
+ifdef keyboard
+ KEYBOARD := $(keyboard)
+endif
+ifdef sub
+ SUBPROJECT := $(sub)
+endif
+ifdef subproject
+ SUBPROJECT := $(subproject)
+endif
+ifdef keymap
+ KEYMAP := $(keymap)
+endif
+
$(info Keyboard: $(KEYBOARD))
$(info Keymap: $(KEYMAP))
$(info Subproject: $(SUBPROJECT))